@@ -93,33 +93,47 @@ jobs:
93
93
fi
94
94
95
95
# Asset Tracker Template firmware build
96
-
97
- - name : Build nrf91 firmware
96
+ - name : Build thingy91x firmware
98
97
working-directory : asset-tracker-template/app
99
98
run : |
99
+ mkdir -p artifacts
100
100
cp overlay-memfault.conf overlay-memfault-att.conf
101
101
echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-att.conf
102
102
echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-att.conf
103
103
echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-att.conf
104
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"
106
-
107
- - name : Rename artifacts
108
- working-directory : asset-tracker-template/app/build
109
- run : |
110
- cp merged.hex asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.hex
111
- cp app/zephyr/.config asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.config
112
- cp app/zephyr/zephyr.signed.bin asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin
113
- cp app/zephyr/zephyr.signed.hex asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.hex
114
- cp app/zephyr/zephyr.elf asset-tracker-template- ${{ env.VERSION }}-thingy91x-nrf91.elf
115
- cp dfu_application.zip asset-tracker-template- ${{ env.VERSION }}-thingy91x-nrf91-dfu.zip
105
+ west build -b thingy91x/nrf9151/ns -d build - p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-att.conf"
106
+ cp build/merged.hex artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.hex
107
+ cp build/app/zephyr/.config artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.config
108
+ cp build/app/zephyr/zephyr.signed.bin artifacts/ asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin
109
+ cp build/app/zephyr/zephyr.signed.hex artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.hex
110
+ cp build/app/zephyr/zephyr.elf artifacts/ asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.elf
111
+ cp build/dfu_application.zip artifacts/ asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-dfu.zip
112
+ cd build
113
+ ninja partition_manager_report
114
+ ninja partition_manager_report > ../artifacts/pmr-thingy91x-nrf91-default- ${{ env.VERSION }}.txt
115
+ sed -i '1d' ../artifacts/pmr-thingy91x-nrf91-default- ${{ env.VERSION }}.txt
116
116
117
- - name : Create partition manager report for nRF91 firmware
118
- working-directory : asset-tracker-template/app/build
117
+ - name : Build nrf9151dk firmware
118
+ working-directory : asset-tracker-template/app
119
119
run : |
120
+ mkdir -p artifacts
121
+ cp overlay-memfault.conf overlay-memfault-att.conf
122
+ echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-att.conf
123
+ echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-att.conf
124
+ echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-att.conf
125
+ echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-att.conf
126
+ west build -b nrf9151dk/nrf9151/ns -d build -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-att.conf"
127
+ cp build/merged.hex artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91.hex
128
+ cp build/app/zephyr/.config artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91.config
129
+ cp build/app/zephyr/zephyr.signed.bin artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91-update-signed.bin
130
+ cp build/app/zephyr/zephyr.signed.hex artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91-update-signed.hex
131
+ cp build/app/zephyr/zephyr.elf artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91.elf
132
+ cp build/dfu_application.zip artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91-dfu.zip
133
+ cd build
120
134
ninja partition_manager_report
121
- ninja partition_manager_report > pmr-nrf91-default-${{ env.VERSION }}.txt
122
- sed -i '1d' pmr-nrf91-default-${{ env.VERSION }}.txt
135
+ ninja partition_manager_report > ../artifacts/ pmr-nrf9151dk -nrf91-default-${{ env.VERSION }}.txt
136
+ sed -i '1d' ../artifacts/ pmr-nrf9151dk -nrf91-default-${{ env.VERSION }}.txt
123
137
124
138
- name : Upload artifact
125
139
uses : actions/upload-artifact@v4
@@ -128,11 +142,10 @@ jobs:
128
142
name : firmware-att
129
143
if-no-files-found : error
130
144
path : |
131
- asset-tracker-template/app/build/asset-tracker-template-*. *
145
+ asset-tracker-template/app/artifacts/ *
132
146
133
147
# Asset Tracker Template debug firmware build
134
-
135
- - name : Build nrf91 debug firmware
148
+ - name : Build thingy91x debug firmware
136
149
if : ${{ inputs.build_debug }}
137
150
working-directory : asset-tracker-template/app
138
151
run : |
0 commit comments