Commit bff24aa 1 parent 1161122 commit bff24aa Copy full SHA for bff24aa
File tree 1 file changed +20
-2
lines changed
1 file changed +20
-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
+ - nwdaq_br28_fdc
17
+ - nwdaq_br28_fdc_bl
18
+
12
19
steps :
13
20
14
21
- name : Setup arm-none-eabi-gcc path
@@ -30,10 +37,21 @@ jobs:
30
37
echo PATH=$PATH >> $GITHUB_ENV
31
38
echo VIRTUAL_ENV=$VIRTUAL_ENV >> $GITHUB_ENV
32
39
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
+
33
45
- name : Select the port
34
- run : defconfig config/nwdaq_br28_fdc_defconfig
46
+ run : defconfig config/${{ matrix.port }}_defconfig
35
47
36
48
- name : Compile
37
49
run : |
38
- scons firmware
50
+ scons firmware-sign
39
51
52
+ - name : Upload artifacts
53
+ uses : actions/upload-artifact@v3
54
+ with :
55
+ path : |
56
+ bin/*
57
+ .config
You can’t perform that action at this time.
0 commit comments