Skip to content

Commit

Permalink
feat: enable WiFi debug build (#8)
Browse files Browse the repository at this point in the history
P-GPS must be disabled for that.
  • Loading branch information
coderbyheart authored Dec 9, 2022
1 parent fcac863 commit 1d650a8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ jobs:
# There is not Solar shield for the nRF9160DK
- thingy91+low-power+solar+memfault
- thingy91+debug+solar+memfault
# When enabling WiFi, neither debug nor Memfault fit flash
# When enabling WiFi, Memfault does not fit flash
# There is no WiFi shield for the Thingy:91
- nrf9160dk+low-power+wifi
- nrf9160dk+debug+wifi

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -108,11 +109,11 @@ jobs:
working-directory: firmware

- name: enable low-power build
if: matrix.configuration == 'low-power'
if: contains(matrix.configuration, 'low-power')
run: echo CONFIG_OVERLAY=overlay-low-power.conf >> $GITHUB_ENV

- name: enable debug build
if: matrix.configuration == 'debug'
if: contains(matrix.configuration, 'debug')
run: echo CONFIG_OVERLAY=overlay-debug.conf >> $GITHUB_ENV

- name: enable solar shield support
Expand All @@ -125,6 +126,11 @@ jobs:
echo SHIELD_OVERLAY=overlay-nrf7002ek-wifi-scan-only.conf >> $GITHUB_ENV
echo EXTRA_ARGS="-DSHIELD=nrf7002_ek -DDTC_OVERLAY_FILE=nrf9160dk_with_nrf7002ek.overlay" >> $GITHUB_ENV
# WiFi cannot be combined with P-GPS support
- name: enable P-GPS
if: ${{ !contains(matrix.configuration, 'wifi') }}
run: echo PGPS_OVERLAY=overlay-pgps.conf >> $GITHUB_ENV

- name: Build
working-directory: firmware
run: |
Expand All @@ -139,9 +145,18 @@ jobs:
--build-dir /workdir/project/build \
-- \
${{ env.EXTRA_ARGS }} \
-DOVERLAY_CONFIG="${{ env.CONFIG_OVERLAY }};overlay-pgps.conf;overlay-aws.conf;${{ env.MEMFAULT_OVERLAY }};/workdir/project/thingy_world.conf;/workdir/project/firmware.conf;${{ env.SHIELD_OVERLAY }}" \
-DOVERLAY_CONFIG="${{ env.CONFIG_OVERLAY }};${{ env.PGPS_OVERLAY }};overlay-aws.conf;${{ env.MEMFAULT_OVERLAY }};/workdir/project/thingy_world.conf;/workdir/project/firmware.conf;${{ env.SHIELD_OVERLAY }}" \
-DEXTRA_CFLAGS="-Werror"
- run: cat firmware/firmware.conf
if: failure()

- run: cat firmware/build/zephyr/.config
if: failure()

- run: cat firmware/build/zephyr/zephyr.dts
if: failure()

- name: Upload symbols file to Memfault
if: contains(matrix.configuration, 'memfault')
working-directory: firmware
Expand All @@ -162,9 +177,9 @@ jobs:
cp firmware/build/zephyr/app_signed.hex ./
cp firmware/build/zephyr/app_update.bin ./
cp firmware/build/zephyr/zephyr.elf ./
cp firmware/firmware.conf ./
- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.configuration }}-${{
needs.date-string.outputs.dateAsString }}-${{ github.sha }}
Expand Down
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,26 @@
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/nrf9160dk+low-power+wifi-*/zephyr.elf",
"name": "thingy_world-nRF9160DK-low-power+wifi-${nextRelease.gitTag}.elf",
"label": "Symbol file for nRF9160 DK with WiFi Shield firmware (low power)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/nrf9160dk+debug+wifi-*/merged.hex",
"name": "thingy_world-nRF9160DK-debug+wifi-${nextRelease.gitTag}.hex",
"label": "Pre-build HEX file for nRF9160 DK with WiFi Shield (debug)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/nrf9160dk+debug+wifi-*/app_signed.hex",
"name": "thingy_world-nRF9160DK-debug+wifi-${nextRelease.gitTag}-signed.hex",
"label": "Pre-build HEX file for nRF9160 DK with WiFi Shield (debug, signed)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/nrf9160dk+debug+wifi-*/app_update.bin",
"name": "thingy_world-nRF9160DK-debug+wifi-${nextRelease.gitTag}-app_upgrade.bin",
"label": "App upgrade file for nRF9160 DK with WiFi Shield (debug)"
},
{
"path": "/home/runner/work/thingy-world-firmware-aws/thingy-world-firmware-aws/nrf9160dk+debug+wifi-*/zephyr.elf",
"name": "thingy_world-nRF9160DK-debug+wifi-${nextRelease.gitTag}.elf",
"label": "Symbol file for nRF9160 DK with WiFi Shield firmware (debug)"
}
]
}
Expand Down

0 comments on commit 1d650a8

Please sign in to comment.