@@ -3,11 +3,6 @@ name: Build
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
- build_bl_update :
7
- description : Build bootloader update
8
- type : boolean
9
- required : false
10
- default : false
11
6
build_debug :
12
7
type : boolean
13
8
required : false
21
16
memfault_sw_type :
22
17
type : string
23
18
required : false
24
- default : " hello.nrfcloud.com -ci"
19
+ default : " asset-tracker-template -ci"
25
20
build_debug :
26
21
type : boolean
27
22
required : false
@@ -58,27 +53,17 @@ jobs:
58
53
- name : Checkout
59
54
uses : actions/checkout@v4
60
55
with :
61
- path : thingy91x-oob
56
+ path : asset-tracker-template
62
57
63
58
- name : Initialize
64
- working-directory : thingy91x-oob
59
+ working-directory : asset-tracker-template
65
60
run : |
66
61
west init -l .
67
62
west config manifest.group-filter +bsec
68
63
west config build.sysbuild True
69
64
west update -o=--depth=1 -n
70
65
west blobs fetch hal_nordic
71
66
72
- - uses : robinraju/release-downloader@v1
73
- with :
74
- tag : ' v2.0.0-preview58'
75
- fileName : ' nrf53-bl-v3-*.hex'
76
-
77
- - uses : robinraju/release-downloader@v1
78
- with :
79
- tag : ' v2.0.0-preview58'
80
- fileName : ' nrf91-bl-v2.hex'
81
-
82
67
- name : Install dependencies
83
68
run : |
84
69
pip install -r nrf/scripts/requirements-build.txt
@@ -94,99 +79,99 @@ jobs:
94
79
95
80
- name : Update VERSION file for release
96
81
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
97
- working-directory : thingy91x-oob
82
+ working-directory : asset-tracker-template
98
83
run : |
99
84
python3 scripts/app_version.py ${GITHUB_REF_NAME} > app/VERSION
100
85
cat app/VERSION
101
86
102
87
- name : Set MEMFAULT_SW_TYPE from inputs or use default
103
88
run : |
104
89
if [ -z "${{ inputs.memfault_sw_type }}" ]; then
105
- echo "MEMFAULT_SW_TYPE=hello.nrfcloud.com -ci" >> $GITHUB_ENV
90
+ echo "MEMFAULT_SW_TYPE=asset-tracker-template -ci" >> $GITHUB_ENV
106
91
else
107
92
echo "MEMFAULT_SW_TYPE=${{ inputs.memfault_sw_type }}" >> $GITHUB_ENV
108
93
fi
109
94
110
95
# Out-of-box firmware build
111
96
112
97
- name : Build nrf91 firmware
113
- working-directory : thingy91x-oob /app
98
+ working-directory : asset-tracker-template /app
114
99
run : |
115
- cp overlay-memfault.conf overlay-memfault-oob .conf
116
- echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-oob .conf
117
- echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-oob .conf
118
- echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-oob .conf
119
- echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-oob .conf
120
- west build -b thingy91x/nrf9151/ns -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-oob .conf"
100
+ cp overlay-memfault.conf overlay-memfault-att .conf
101
+ echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-att .conf
102
+ echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-att .conf
103
+ echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-att .conf
104
+ echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-att .conf
105
+ west build -b thingy91x/nrf9151/ns -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-att .conf"
121
106
122
107
- name : Rename artifacts
123
- working-directory : thingy91x-oob /app/build
108
+ working-directory : asset-tracker-template /app/build
124
109
run : |
125
110
cp ../../../nrf91-bl-*.hex .
126
111
# Overwrite the bootloader part with the frozen version
127
112
python3 ../../../zephyr/scripts/build/mergehex.py -o \
128
- hello.nrfcloud.com -${{ env.VERSION }}-thingy91x-nrf91.hex \
113
+ asset-tracker-template -${{ env.VERSION }}-thingy91x-nrf91.hex \
129
114
merged.hex \
130
115
nrf91-bl-*.hex \
131
116
--overlap replace
132
- cp app/zephyr/.config hello.nrfcloud.com -${{ env.VERSION }}-thingy91x-nrf91.config
133
- cp app/zephyr/zephyr.signed.bin hello.nrfcloud.com -${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin
134
- cp app/zephyr/zephyr.signed.hex hello.nrfcloud.com -${{ env.VERSION }}-thingy91x-nrf91-update-signed.hex
135
- cp app/zephyr/zephyr.elf hello.nrfcloud.com -${{ env.VERSION }}-thingy91x-nrf91.elf
136
- cp dfu_application.zip hello.nrfcloud.com -${{ env.VERSION }}-thingy91x-nrf91-dfu.zip
117
+ cp app/zephyr/.config asset-tracker-template -${{ env.VERSION }}-thingy91x-nrf91.config
118
+ cp app/zephyr/zephyr.signed.bin asset-tracker-template -${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin
119
+ cp app/zephyr/zephyr.signed.hex asset-tracker-template -${{ env.VERSION }}-thingy91x-nrf91-update-signed.hex
120
+ cp app/zephyr/zephyr.elf asset-tracker-template -${{ env.VERSION }}-thingy91x-nrf91.elf
121
+ cp dfu_application.zip asset-tracker-template -${{ env.VERSION }}-thingy91x-nrf91-dfu.zip
137
122
138
123
- name : Create partition manager report for nRF91 firmware
139
- working-directory : thingy91x-oob /app/build
124
+ working-directory : asset-tracker-template /app/build
140
125
run : |
141
126
ninja partition_manager_report
142
127
ninja partition_manager_report > pmr-nrf91-default-${{ env.VERSION }}.txt
143
128
sed -i '1d' pmr-nrf91-default-${{ env.VERSION }}.txt
144
129
145
130
- name : Upload artifact
146
131
uses : actions/upload-artifact@v4
147
- id : artifact-upload-oob
132
+ id : artifact-upload-att
148
133
with :
149
- name : firmware-oob
134
+ name : firmware-att
150
135
if-no-files-found : error
151
136
path : |
152
- thingy91x-oob /app/build/hello.nrfcloud.com -*.*
153
- thingy91x-oob /app/build/nrf91-bl-*.hex
154
- thingy91x-oob /app/build/pmr-nrf91-*.txt
137
+ asset-tracker-template /app/build/asset-tracker-template -*.*
138
+ asset-tracker-template /app/build/nrf91-bl-*.hex
139
+ asset-tracker-template /app/build/pmr-nrf91-*.txt
155
140
156
- # Out-of-box debug firmware build
141
+ # Asset Tracker Template debug firmware build
157
142
158
143
- name : Build nrf91 debug firmware
159
144
if : ${{ inputs.build_debug }}
160
- working-directory : thingy91x-oob /app
145
+ working-directory : asset-tracker-template /app
161
146
run : |
162
147
cp overlay-memfault.conf overlay-memfault-debug.conf
163
148
echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-debug.conf
164
149
echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-debug.conf
165
- echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}+ debug\" >> overlay-memfault-debug.conf
150
+ echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}- debug\" >> overlay-memfault-debug.conf
166
151
echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-debug.conf
167
152
echo CONFIG_APP_MEMFAULT_UPLOAD_METRICS_ON_CLOUD_READY=y >> overlay-memfault-debug.conf
168
153
west build -p -b thingy91x/nrf9151/ns -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-debug.conf;overlay-modemtrace-to-memfault.conf;overlay-etb.conf"
169
154
170
155
- name : Rename debug artifacts
171
156
if : ${{ inputs.build_debug }}
172
- working-directory : thingy91x-oob /app/build
157
+ working-directory : asset-tracker-template /app/build
173
158
run : |
174
159
cp ../../../nrf91-bl-*.hex .
175
160
# Overwrite the bootloader part with the frozen version
176
161
python3 ../../../zephyr/scripts/build/mergehex.py -o \
177
- hello.nrfcloud.com- ${{ env.VERSION }}+ debug-thingy91x-nrf91.hex \
162
+ asset-tracker-template- ${{ env.VERSION }}- debug-thingy91x-nrf91.hex \
178
163
merged.hex \
179
164
nrf91-bl-*.hex \
180
165
--overlap replace
181
- cp app/zephyr/.config hello.nrfcloud.com- ${{ env.VERSION }}+ debug-thingy91x-nrf91.config
182
- cp app/zephyr/zephyr.signed.bin hello.nrfcloud.com- ${{ env.VERSION }}+ debug-thingy91x-nrf91-update-signed.bin
183
- cp app/zephyr/zephyr.signed.hex hello.nrfcloud.com- ${{ env.VERSION }}+ debug-thingy91x-nrf91-update-signed.hex
184
- cp app/zephyr/zephyr.elf hello.nrfcloud.com- ${{ env.VERSION }}+ debug-thingy91x-nrf91.elf
185
- cp dfu_application.zip hello.nrfcloud.com- ${{ env.VERSION }}+ debug-thingy91x-nrf91-dfu.zip
166
+ cp app/zephyr/.config asset-tracker-template- ${{ env.VERSION }}- debug-thingy91x-nrf91.config
167
+ cp app/zephyr/zephyr.signed.bin asset-tracker-template- ${{ env.VERSION }}- debug-thingy91x-nrf91-update-signed.bin
168
+ cp app/zephyr/zephyr.signed.hex asset-tracker-template- ${{ env.VERSION }}- debug-thingy91x-nrf91-update-signed.hex
169
+ cp app/zephyr/zephyr.elf asset-tracker-template- ${{ env.VERSION }}- debug-thingy91x-nrf91.elf
170
+ cp dfu_application.zip asset-tracker-template- ${{ env.VERSION }}- debug-thingy91x-nrf91-dfu.zip
186
171
187
172
- name : Create partition manager report for nRF91 debug firmware
188
173
if : ${{ inputs.build_debug }}
189
- working-directory : thingy91x-oob /app/build
174
+ working-directory : thingy91x-att /app/build
190
175
run : |
191
176
ninja partition_manager_report
192
177
ninja partition_manager_report > pmr-nrf91-debug-${{ env.VERSION }}.txt
@@ -195,89 +180,13 @@ jobs:
195
180
- name : Upload artifact
196
181
if : ${{ inputs.build_debug }}
197
182
uses : actions/upload-artifact@v4
198
- id : artifact-upload-oob-debug
199
- with :
200
- name : firmware-oob-debug
201
- if-no-files-found : error
202
- path : |
203
- thingy91x-oob/app/build/hello.nrfcloud.com-*.*
204
- thingy91x-oob/app/build/pmr-nrf91-*.txt
205
-
206
- # Connectivity Bridge firmware build
207
-
208
- - name : Build nrf53 firmware
209
- working-directory : nrf/applications/connectivity_bridge
210
- run : |
211
- west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3 -DCONFIG_BUILD_S1_VARIANT=y
212
-
213
- - name : Create partition manager report for nRF53 firmware
214
- working-directory : nrf/applications/connectivity_bridge/build
215
- run : |
216
- ninja partition_manager_report
217
- ninja partition_manager_report > pmr-nrf53-default-${{ env.VERSION }}.txt
218
- sed -i '1d' pmr-nrf53-default-${{ env.VERSION }}.txt
219
-
220
- - name : Create nrf53 merged_domains HEX file
221
- run : |
222
- # check that bootloader hex files are present
223
- ls $(pwd)/nrf53-bl-v*-net.hex $(pwd)/nrf53-bl-v*-app.hex
224
- # merge hex files to app, net and merged variants, enforcing the frozen bootloader
225
- python3 zephyr/scripts/build/mergehex.py -o \
226
- $(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-net.hex \
227
- $(pwd)/nrf/applications/connectivity_bridge/build/merged_CPUNET.hex \
228
- $(pwd)/nrf53-bl-v*-net.hex \
229
- --overlap replace
230
- python3 zephyr/scripts/build/mergehex.py -o \
231
- $(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-app.hex \
232
- $(pwd)/nrf/applications/connectivity_bridge/build/merged.hex \
233
- $(pwd)/nrf53-bl-v*-app.hex \
234
- --overlap replace
235
- python3 zephyr/scripts/build/mergehex.py -o \
236
- $(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-merged.hex \
237
- $(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-app.hex \
238
- $(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-net.hex
239
-
240
- - name : Copy nrf53 DFU file
241
- run : |
242
- cp $(pwd)/nrf/applications/connectivity_bridge/build/dfu_application.zip \
243
- $(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-dfu.zip
244
- cp nrf53-bl-*.hex $(pwd)/nrf/applications/connectivity_bridge/build/
245
-
246
- - name : Upload artifact
247
- uses : actions/upload-artifact@v4
248
- id : artifact-upload-connectivity-bridge
249
- with :
250
- name : firmware-connectivity-bridge
251
- if-no-files-found : error
252
- path : |
253
- nrf/applications/connectivity_bridge/build/connectivity-bridge-*.*
254
- nrf/applications/connectivity_bridge/build/nrf53-bl-*.hex
255
- nrf/applications/connectivity_bridge/build/pmr-nrf53-*.txt
256
-
257
- # Bootloader update build
258
-
259
- - name : Build BL Update
260
- if : ${{ inputs.build_bl_update }}
261
- working-directory : thingy91x-oob
262
- run : |
263
- west twister -T . --test app/app.build.bootloader_update -v -p thingy91x/nrf9151/ns --inline-logs
264
- cp twister-out/thingy91x_nrf9151_ns/app/app.build.bootloader_update/dfu_mcuboot.zip \
265
- hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-bootloader.zip
266
- rm -rf twister-out
267
- west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -d ../nrf/applications/connectivity_bridge/build-bl-update ../nrf/applications/connectivity_bridge -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=4 -DCONFIG_BUILD_S1_VARIANT=y
268
- cp ../nrf/applications/connectivity_bridge/build-bl-update/dfu_mcuboot.zip \
269
- connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-bootloader.zip
270
-
271
- - name : Upload artifact
272
- if : ${{ inputs.build_bl_update }}
273
- uses : actions/upload-artifact@v4
274
- id : artifact-upload-bl-update
183
+ id : artifact-upload-att-debug
275
184
with :
276
- name : firmware-bl-update
185
+ name : firmware-att-debug
277
186
if-no-files-found : error
278
187
path : |
279
- thingy91x-oob/hello.nrfcloud.com -*.*
280
- thingy91x-oob/connectivity-bridge -*.*
188
+ thingy91x-att/app/build/asset-tracker-template -*.*
189
+ thingy91x-att/app/build/pmr-nrf91 -*.txt
281
190
282
191
- name : Print run-id and fw version
283
192
run : |
0 commit comments