Skip to content

CI

CI #171

Workflow file for this run

# Build the project using the Bitcraze builder docker image
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Weekly build to make sure dependencies are OK
- cron: '30 15 * * 2'
jobs:
read_targets_from_file:
uses: bitcraze/workflows/.github/workflows/read_build_targets.yml@a5173df779e4b0b9c1f57d156cda9b8006901fd2
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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Check and build
run: docker run --rm -v ${PWD}:/module -e "GITHUB_TOKEN=$GITHUB_TOKEN" bitcraze/builder ./tools/build/build $PLATFORM