Skip to content

Commit

Permalink
actions: Set matrix strategy, generate default ELF signing key, uploa…
Browse files Browse the repository at this point in the history
…d artifacts
  • Loading branch information
iqyx committed Apr 6, 2024
1 parent 1161122 commit bf7e8c1
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
build:
name: build
runs-on: arm-none-eabi-gcc

strategy:
matrix:
port:
- nwdaq_br28_fdc
- nwdaq_br28_bl_fdc

steps:

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

- name: Compile
run: |
scons firmware
scons firmware-sign
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: |
bin/*
.config

0 comments on commit bf7e8c1

Please sign in to comment.