Skip to content

Commit

Permalink
feat: separate double-tap-to-crash builds
Browse files Browse the repository at this point in the history
  • Loading branch information
maxd-nordic committed Apr 8, 2024
1 parent 973bbd1 commit 02de842
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
matrix:
configuration:
- thingy91.low-power.memfault
# Double-tap to crash (dt2c) sends Button ID 42 and crashes on double tap of button
# to demonstrate the Memfault crash reporting feature.
- thingy91.low-power.memfault.dt2c
- nrf9160dk.low-power.memfault
# Not enough flash for Memfault AND debug on Thingy:91,
# and it's not that useful anyway because debug builds
Expand Down Expand Up @@ -142,6 +145,11 @@ jobs:
echo "CONFIG_MEMFAULT_NCS_IMPLEMENT_METRICS_COLLECTION=n" >> firmware.conf
echo MEMFAULT_OVERLAY=overlay-memfault.conf >> $GITHUB_ENV
- name: Configure double-tap-to-crash
if: contains(matrix.configuration, 'dt2c')
working-directory: firmware
run: echo "CONFIG_UI_DOUBLE_TAP_TO_CRASH=y" >> firmware.conf

- name: Configure for NB-IoT only
working-directory: firmware
if: contains(matrix.configuration, 'nbiot')
Expand Down
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,26 @@
"name": "thingy_world-${nextRelease.gitTag}-Thingy91-low-power.elf",
"label": "App Symbols ELF file for Thingy:91 firmware (low power)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/thingy91.low-power.memfault.dt2c-*/merged.hex",
"name": "thingy_world-Thingy91-low-power-dt2c-${nextRelease.gitTag}.hex",
"label": "App with Bootloader HEX file for Thingy:91 (with double-tap-to-crash) (low power)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/thingy91.low-power.memfault.dt2c-*/app_signed.hex",
"name": "thingy_world-Thingy91-low-power-dt2c-${nextRelease.gitTag}-signed.hex",
"label": "Firmware Update Image HEX file for Thingy:91 (with double-tap-to-crash) (low power, signed)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/thingy91.low-power.memfault.dt2c-*/app_update.bin",
"name": "thingy_world-Thingy91-low-power-dt2c-${nextRelease.gitTag}-app_upgrade.bin",
"label": "Firmware Update Image BIN file for Thingy:91 (with double-tap-to-crash) (low power)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/thingy91.low-power.memfault.dt2c-*/zephyr.elf",
"name": "thingy_world-Thingy91-low-power-dt2c-${nextRelease.gitTag}.elf",
"label": "App Symbols ELF file for Thingy:91 (with double-tap-to-crash) firmware (low power)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/thingy91.low-power.memfault.nbiot-*/merged.hex",
"name": "thingy_world-${nextRelease.gitTag}-Thingy91-low-power-nbiot.hex",
Expand Down

0 comments on commit 02de842

Please sign in to comment.