Skip to content

Commit c73c1ac

Browse files
committed
workflow: build: Store MCUboot update binaries
Store MCUboot update images when collecting artifacts. Add all *.bin and *.hex files into extra artifacts to be collected for releases and manually triggered workflows. Remove basic artifact upload from nightly builds at least until we use them. If we need them, we can trigger the build manually. Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
1 parent 5630e66 commit c73c1ac

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
./nrfutil toolchain-manager launch --chdir serial_modem -- west twister -T . -v --inline-logs --overflow-as-errors --all
8282
8383
- name: Zip build artifacts
84-
if: ${{ github.event_name == 'schedule' || inputs.trigger_source == 'release-workflow' || github.event_name == 'workflow_dispatch' }}
84+
if: ${{ inputs.trigger_source == 'release-workflow' || github.event_name == 'workflow_dispatch' }}
8585
working-directory: serial_modem
8686
run: |
8787
mkdir -p artifacts
@@ -106,12 +106,15 @@ jobs:
106106
cp "${src_dir}/${app_build_dir}/zephyr/zephyr.dts" "${temp}/${base}.dts"
107107
if [ -z "$host" ]; then
108108
cp "${src_dir}/${app_build_dir}/zephyr/zephyr.signed.bin" "${temp}/${base}.signed.bin"
109-
cp "${src_dir}/dfu_application.zip" "${temp}/${base}_dfu.zip"
109+
cp "${src_dir}/dfu_application.zip" "${temp}/${base}_dfu_application.zip"
110+
cp "${src_dir}/dfu_mcuboot.zip" "${temp}/${base}_dfu_mcuboot.zip"
111+
cp "${src_dir}/signed_by_mcuboot_and_b0_mcuboot.bin" "${temp}/${base}_mcuboot_s0.signed.bin"
112+
cp "${src_dir}/signed_by_mcuboot_and_b0_s1_image.bin" "${temp}/${base}_mcuboot_s1.signed.bin"
110113
fi
111114
(cd "$temp" && zip -q -r "$root/artifacts/${base}.zip" .)
112115
113116
cd ${src_dir}
114-
find . -type f \( -name '*.elf' -o -name '*.dts' -o -name '.config' \) -exec zip -q -r "${root}/artifacts_extras/${base}_extras.zip" {} +
117+
find . -type f \( -name '*.elf' -o -name '*.dts' -o -name '.config' -o -name '*.bin' -o -name '*.hex' \) -exec zip -q -r "${root}/artifacts_extras/${base}_extras.zip" {} +
115118
cd ${root}
116119
117120
rm -rf "$temp"
@@ -135,7 +138,7 @@ jobs:
135138
zip_artifacts "sm_ppp_shell" "${NRF54L15DK_DIR}/sm_ppp_shell/sample.sm_ppp_shell" "sm_ppp_shell_${VERSION}_nrf54l15dk" 1
136139
137140
- name: Upload artifacts
138-
if: ${{ github.event_name == 'schedule' || inputs.trigger_source == 'release-workflow' || github.event_name == 'workflow_dispatch' }}
141+
if: ${{ inputs.trigger_source == 'release-workflow' || github.event_name == 'workflow_dispatch' }}
139142
uses: actions/upload-artifact@v4
140143
with:
141144
path: |

doc/releases/release_artifacts.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ The artifacts are zipped and contain build files such as:
3939
- The unsigned application binary (MCUboot + application) to be flashed with Programmer or nRF Util.
4040
* - ``.signed.bin``
4141
- Signed application only binary to be used in FOTA/DFU.
42-
* - ``_dfu.zip``
42+
* - ``_mcuboot_s0.signed.bin``
43+
- Signed MCUboot binary for S0 slot to be used in FOTA/DFU.
44+
* - ``_mcuboot_s1.signed.bin``
45+
- Signed MCUboot binary for S1 slot to be used in FOTA/DFU.
46+
* - ``_dfu_application.zip``
4347
- Signed application only binary zipped with metadata used by nRF Cloud for FOTA/DFU.
48+
* - ``_dfu_mcuboot.zip``
49+
- Signed MCUboot binary for S0 and S1 slots zipped with metadata used by nRF Cloud for FOTA/DFU.
4450
* - ``.elf``
4551
- Application image symbols for debugging purposes.
4652
* - ``.dts``

0 commit comments

Comments
 (0)