-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (31 loc) · 1.03 KB
/
nightly-experiment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Build the project using the Bitcraze builder docker image
# Using definition in nightly-experiment.yml
name: Nightly experiment
on:
workflow_dispatch:
schedule:
- cron: '25 1 * * *'
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-20.04
strategy:
matrix:
${{fromJson(needs.read_targets_from_file.outputs.platforms)}}
env:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Check and build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: docker run --rm -v ${PWD}:/module -e "GH_TOKEN=$GH_TOKEN" bitcraze/builder ./tools/build/build $PLATFORM nightly-experiment
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: nightly-experiment
path: firmware-${{ matrix.platform }}-nightly-experiment.zip