File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 7
7
workflow_dispatch :
8
8
inputs :
9
9
ZEPHYR_SDK :
10
+ description : Zephyr toolchain version
10
11
required : true
11
12
type : string
12
13
default : 0.16.3
13
14
BOARD :
15
+ description : Zephyr board to build
14
16
required : true
15
17
type : string
16
18
default : nrf9160dk/nr9160/ns
17
19
ARTIFACT :
20
+ description : Whether or not to save the artifact produced by the build
18
21
required : true
19
22
type : boolean
20
23
default : false
24
+ HEX_FILE :
25
+ description : Name of the hex file to save
26
+ required : false
27
+ type : string
28
+ default : merged.hex
21
29
TAG :
30
+ description : version number of the firmware build
22
31
type : string
23
32
24
33
workflow_call :
32
41
ARTIFACT :
33
42
required : true
34
43
type : boolean
44
+ HEX_FILE :
45
+ required : true
46
+ type : string
35
47
TAG :
36
48
type : string
37
49
78
90
run : |
79
91
cd build
80
92
mkdir -p artifacts
81
- mv zephyr/merged.hex ./artifacts/Golioth_${{ steps.nicename.outputs.BOARD_NICENAME }}_kitchen_sink_${{ inputs.TAG }}.hex
93
+ mv zephyr/${{ inputs.HEX_FILE }} ./artifacts/Golioth_${{ steps.nicename.outputs.BOARD_NICENAME }}_kitchen_sink_${{ inputs.TAG }}.hex
82
94
83
95
# Run IDs are unique per repo but are reused on re-runs
84
96
- name : Save artifact
Original file line number Diff line number Diff line change @@ -16,14 +16,20 @@ jobs:
16
16
build-binaries :
17
17
strategy :
18
18
matrix :
19
- ZEPHYR_SDK : [0.16.3]
20
- BOARD : ["nrf9160dk/nrf9160/ns","nrf7002dk/nrf5340/cpuapp"]
19
+ include :
20
+ - BOARD : nrf9160dk/nrf9160/ns
21
+ ZEPHYR_SDK : 0.16.3
22
+ HEX_FILE : merged.hex
23
+ - BOARD : nrf7002dk/nrf5340/cpuapp
24
+ ZEPHYR_SDK : 0.16.3
25
+ HEX_FILE : zephyr.hex
21
26
22
27
uses : ./.github/workflows/build_zephyr.yml
23
28
with :
24
29
ZEPHYR_SDK : ${{ matrix.ZEPHYR_SDK }}
25
30
BOARD : ${{ matrix.BOARD }}
26
31
ARTIFACT : true
32
+ HEX_FILE : ${{ matrix.HEX_FILE }}
27
33
TAG : ${{ inputs.version }}
28
34
29
35
upload-binaries :
Original file line number Diff line number Diff line change 16
16
ZEPHYR_SDK : 0.16.3
17
17
BOARD : nrf9160dk/nrf9160/ns
18
18
ARTIFACT : false
19
+ HEX_FILE : merged.hex
19
20
test_build_nrf7002 :
20
21
uses : ./.github/workflows/build_zephyr.yml
21
22
with :
22
23
ZEPHYR_SDK : 0.16.3
23
24
BOARD : nrf7002dk/nrf5340/cpuapp
24
25
ARTIFACT : false
26
+ HEX_FILE : zephyr.hex
You can’t perform that action at this time.
0 commit comments