Port project to Zephyr 4.2.0 #67
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build the project using the Bitcraze builder docker image | |
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
# Weekly build to make sure dependencies are OK | |
- cron: '30 15 * * 5' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
mode: [crazyradio2, crazyradio2-CRPA-emulation] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Build | |
run: | | |
if [ ${{ matrix.mode }} = 'crazyradio2' ]; then | |
docker run --rm -v ${PWD}:/module bitcraze/builder ./tools/build/build | |
else | |
docker run --rm -v ${PWD}:/module bitcraze/builder ./tools/build/build-legacy | |
fi | |
cp build/zephyr/crazyradio2.uf2 ${{ matrix.mode }}.uf2 | |
cp build/zephyr/crazyradio2.hex ${{ matrix.mode }}.hex | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.mode }} | |
path: | | |
${{ matrix.mode }}.uf2 | |
${{ matrix.mode }}.hex |