Commit 0c279fc 1 parent 1161122 commit 0c279fc Copy full SHA for 0c279fc
File tree 1 file changed +23
-2
lines changed
1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
name : build
11
11
runs-on : arm-none-eabi-gcc
12
+
13
+ strategy :
14
+ matrix :
15
+ port :
16
+ - name : nwdaq_br28_fdc
17
+ target : firmware-sign
18
+ - name : nwdaq_br28_fdc_bl
19
+ target : firmware
20
+
12
21
steps :
13
22
14
23
- name : Setup arm-none-eabi-gcc path
@@ -30,10 +39,22 @@ jobs:
30
39
echo PATH=$PATH >> $GITHUB_ENV
31
40
echo VIRTUAL_ENV=$VIRTUAL_ENV >> $GITHUB_ENV
32
41
42
+ - name : Create default ELF signing key
43
+ run : |
44
+ python -c "import hashlib; import base64; print(base64.b64encode(hashlib.sha256(b'default-key').digest()).decode('utf-8'))" > elfsign.key
45
+ scripts/elfsign.py --sk elfsign.key -p elfsign.pub
46
+
33
47
- name : Select the port
34
- run : defconfig config/nwdaq_br28_fdc_defconfig
48
+ run : defconfig config/${{ matrix.port.name }}_defconfig
35
49
36
50
- name : Compile
37
51
run : |
38
- scons firmware
52
+ scons ${{ matrix.port.target }}
39
53
54
+ - name : Upload artifacts
55
+ uses : actions/upload-artifact@v4
56
+ with :
57
+ name : ${{ matrix.port }}
58
+ path : |
59
+ bin/*
60
+ .config
You can’t perform that action at this time.
0 commit comments