Skip to content

Commit bff24aa

Browse files
committed
actions: Set matrix strategy, generate default ELF signing key, upload artifacts
1 parent 1161122 commit bff24aa

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/main.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ jobs:
99
build:
1010
name: build
1111
runs-on: arm-none-eabi-gcc
12+
13+
strategy:
14+
matrix:
15+
port:
16+
- nwdaq_br28_fdc
17+
- nwdaq_br28_fdc_bl
18+
1219
steps:
1320

1421
- name: Setup arm-none-eabi-gcc path
@@ -30,10 +37,21 @@ jobs:
3037
echo PATH=$PATH >> $GITHUB_ENV
3138
echo VIRTUAL_ENV=$VIRTUAL_ENV >> $GITHUB_ENV
3239
40+
- name: Create default ELF signing key
41+
run: |
42+
python -c "import hashlib; import base64; print(base64.b64encode(hashlib.sha256(b'default-key').digest()).decode('utf-8'))" > elfsign.key
43+
scripts/elfsign.py --sk elfsign.key -p elfsign.pub
44+
3345
- name: Select the port
34-
run: defconfig config/nwdaq_br28_fdc_defconfig
46+
run: defconfig config/${{ matrix.port }}_defconfig
3547

3648
- name: Compile
3749
run: |
38-
scons firmware
50+
scons firmware-sign
3951
52+
- name: Upload artifacts
53+
uses: actions/upload-artifact@v3
54+
with:
55+
path: |
56+
bin/*
57+
.config

0 commit comments

Comments
 (0)