From 83b10a5df24127b3b9b28470c7b7bd38253a1b24 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sun, 6 Sep 2020 13:37:14 +0200 Subject: [PATCH] Attempt to build all --- .github/workflows/make-all.yml | 25 +++++++++++++++++++++++++ tools/make-all | 25 ------------------------- tools/make-all.sh | 30 ++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/make-all.yml delete mode 100755 tools/make-all create mode 100755 tools/make-all.sh diff --git a/.github/workflows/make-all.yml b/.github/workflows/make-all.yml new file mode 100644 index 000000000..4bf399245 --- /dev/null +++ b/.github/workflows/make-all.yml @@ -0,0 +1,25 @@ +name: make all + +on: [ pull_request ] + +jobs: + buildTest: + name: make all + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ macOS-13 ] + java_version: [ 17 ] + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install JDK ${{ matrix.java_version }} + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: ${{ matrix.java_version }} + - name: make all + run: tools/make-all.sh diff --git a/tools/make-all b/tools/make-all deleted file mode 100755 index 0020102d0..000000000 --- a/tools/make-all +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -PROJECTS="libusb libconn libbtstack libadb bootloader device_bootloader app_layer_v1 blink latency_tester" - -if [[ -z "$MAKE" ]] && which colormake > /dev/null 2>&1 ; then - MAKE=colormake -else - MAKE=make -fi - -if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh -else - PRJMAKEFILEGENERATOR=prjMakefilesGenerator.bat -fi - -for PROJ in $PROJECTS; do - echo =========================================== - echo $PROJ - echo =========================================== - if ! $PRJMAKEFILEGENERATOR firmware/$PROJ; then echo "WARNING: failed to regenerate Makefiles."; fi - if ! $MAKE -C firmware/$PROJ "$@"; then echo FAILURE ; exit 1 ; fi -done -echo SUCCESS - diff --git a/tools/make-all.sh b/tools/make-all.sh new file mode 100755 index 000000000..78384ce19 --- /dev/null +++ b/tools/make-all.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +PROJECTS="libusb libconn libbtstack libadb bootloader device_bootloader app_layer_v1 blink latency_tester" + +if [[ -z "$MAKE" ]] && which colormake > /dev/null 2>&1 ; then + MAKE=colormake +else + MAKE=make +fi + +unameOut="$(uname -s)" +case "${unameOut}" in + Linux*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;; + Darwin*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;; + CYGWIN*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;; + //MINGW*) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.sh;; + *) PRJMAKEFILEGENERATOR=prjMakefilesGenerator.bat +esac + +echo PRJMAKEFILEGENERATOR=$PRJMAKEFILEGENERATOR + +for PROJ in $PROJECTS; do + echo =========================================== + echo "$PROJ" + echo =========================================== + if ! $PRJMAKEFILEGENERATOR firmware/"$PROJ"; then echo "WARNING: failed to regenerate Makefiles."; fi + if ! $MAKE -C firmware/"$PROJ" "$@"; then echo FAILURE ; exit 1 ; fi +done +echo SUCCESS +