Skip to content

Commit

Permalink
Attempt to build all
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jun 7, 2024
1 parent 645ed28 commit 861e72c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/make-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: make all

on: [ pull_request ]

jobs:
buildTest:
name: make all
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macOS-13 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: make all
run: tools/make-all.sh
25 changes: 0 additions & 25 deletions tools/make-all

This file was deleted.

30 changes: 30 additions & 0 deletions tools/make-all.sh
Original file line number Diff line number Diff line change
@@ -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 make "$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

0 comments on commit 861e72c

Please sign in to comment.