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 f959501 commit 83b10a5
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 25 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/make-all.yml
Original file line number Diff line number Diff line change
@@ -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
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 "$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 83b10a5

Please sign in to comment.