Skip to content

CI

CI #199

Workflow file for this run

# Build the project using the Bitcraze builder docker image
name: CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Weekly build to make sure dependencies are OK
- cron: '30 15 * * 0'
jobs:
read_targets_from_file:
uses: bitcraze/workflows/.github/workflows/read_build_targets.yml@dfbc8c23a8ec6d4925d01deb20277839ad1235f1
with:
target_file: './build_targets.json'
build:
needs: read_targets_from_file
runs-on: ubuntu-latest
strategy:
matrix:
${{fromJson(needs.read_targets_from_file.outputs.platforms)}}
env:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Check and build
run: docker run --rm -v ${PWD}:/module bitcraze/builder ./tools/build/build PLATFORM=$PLATFORM
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-${{ github.sha }}
path: _build/${{ matrix.platform }}_nrf.bin