-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: Add nrf9151dk #109
tests: Add nrf9151dk #109
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,33 +93,47 @@ jobs: | |
fi | ||
|
||
# Asset Tracker Template firmware build | ||
|
||
- name: Build nrf91 firmware | ||
- name: Build thingy91x firmware | ||
working-directory: asset-tracker-template/app | ||
run: | | ||
mkdir -p artifacts | ||
cp overlay-memfault.conf overlay-memfault-att.conf | ||
echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-att.conf | ||
echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-att.conf | ||
echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-att.conf | ||
echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-att.conf | ||
west build -b thingy91x/nrf9151/ns -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-att.conf" | ||
|
||
- name: Rename artifacts | ||
working-directory: asset-tracker-template/app/build | ||
run: | | ||
cp merged.hex asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.hex | ||
cp app/zephyr/.config asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.config | ||
cp app/zephyr/zephyr.signed.bin asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin | ||
cp app/zephyr/zephyr.signed.hex asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.hex | ||
cp app/zephyr/zephyr.elf asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.elf | ||
cp dfu_application.zip asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-dfu.zip | ||
west build -b thingy91x/nrf9151/ns -d build -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-att.conf" | ||
cp build/merged.hex artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.hex | ||
cp build/app/zephyr/.config artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.config | ||
cp build/app/zephyr/zephyr.signed.bin artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin | ||
cp build/app/zephyr/zephyr.signed.hex artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-update-signed.hex | ||
cp build/app/zephyr/zephyr.elf artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91.elf | ||
cp build/dfu_application.zip artifacts/asset-tracker-template-${{ env.VERSION }}-thingy91x-nrf91-dfu.zip | ||
cd build | ||
ninja partition_manager_report | ||
ninja partition_manager_report > ../artifacts/pmr-thingy91x-nrf91-default-${{ env.VERSION }}.txt | ||
sed -i '1d' ../artifacts/pmr-thingy91x-nrf91-default-${{ env.VERSION }}.txt | ||
|
||
- name: Create partition manager report for nRF91 firmware | ||
working-directory: asset-tracker-template/app/build | ||
- name: Build nrf9151dk firmware | ||
working-directory: asset-tracker-template/app | ||
run: | | ||
mkdir -p artifacts | ||
cp overlay-memfault.conf overlay-memfault-att.conf | ||
echo "CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ secrets.MEMFAULT_PROJECT_KEY }}\"" >> overlay-memfault-att.conf | ||
echo CONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y >> overlay-memfault-att.conf | ||
echo CONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.VERSION }}\" >> overlay-memfault-att.conf | ||
echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ env.MEMFAULT_SW_TYPE }}\" >> overlay-memfault-att.conf | ||
west build -b nrf9151dk/nrf9151/ns -d build -p --sysbuild -- -DEXTRA_CONF_FILE="overlay-memfault-att.conf" | ||
cp build/merged.hex artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91.hex | ||
cp build/app/zephyr/.config artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91.config | ||
cp build/app/zephyr/zephyr.signed.bin artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91-update-signed.bin | ||
cp build/app/zephyr/zephyr.signed.hex artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91-update-signed.hex | ||
cp build/app/zephyr/zephyr.elf artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91.elf | ||
cp build/dfu_application.zip artifacts/asset-tracker-template-${{ env.VERSION }}-nrf9151dk-nrf91-dfu.zip | ||
cd build | ||
ninja partition_manager_report | ||
ninja partition_manager_report > pmr-nrf91-default-${{ env.VERSION }}.txt | ||
sed -i '1d' pmr-nrf91-default-${{ env.VERSION }}.txt | ||
ninja partition_manager_report > ../artifacts/pmr-nrf9151dk-nrf91-default-${{ env.VERSION }}.txt | ||
sed -i '1d' ../artifacts/pmr-nrf9151dk-nrf91-default-${{ env.VERSION }}.txt | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -128,11 +142,10 @@ jobs: | |
name: firmware-att | ||
if-no-files-found: error | ||
path: | | ||
asset-tracker-template/app/build/asset-tracker-template-*.* | ||
asset-tracker-template/app/artifacts/* | ||
|
||
# Asset Tracker Template debug firmware build | ||
|
||
- name: Build nrf91 debug firmware | ||
- name: Build thingy91x debug firmware | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we also build nrf9151dk debug firmware? I dont know really There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure, but we can add later if needed. |
||
if: ${{ inputs.build_debug }} | ||
working-directory: asset-tracker-template/app | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,15 @@ jobs: | |
target_test: | ||
# This will create multiple jobs, one for each target defined in the matrix | ||
strategy: | ||
fail-fast: false # Don't fail all jobs if one fails | ||
fail-fast: false # Don't fail all jobs if one fails | ||
matrix: | ||
include: | ||
- device: cia-trd-thingy91x | ||
- device: nrf9151dk | ||
- device: thingy91x | ||
|
||
# Self-hosted runner is labeled according to the device it is linked with | ||
runs-on: ${{ matrix.device }} | ||
runs-on: cia-trd-${{ matrix.device }} | ||
environment: ${{ matrix.device }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the purpose of environment: ${{ matrix.device }}? |
||
name: Target Test - ${{ matrix.device }} | ||
|
||
permissions: | ||
|
@@ -94,6 +96,7 @@ jobs: | |
pip install -r requirements.txt --break-system-packages | ||
|
||
- name: Upload symbol file to Memfault | ||
if: ${{ matrix.device != 'ppk_thingy91x' }} | ||
working-directory: asset-tracker-template/tests/on_target/artifacts | ||
run: | | ||
memfault \ | ||
|
@@ -103,7 +106,7 @@ jobs: | |
upload-mcu-symbols \ | ||
--software-type asset-tracker-template-ci \ | ||
--software-version ${{ inputs.artifact_fw_version }} \ | ||
asset-tracker-template-${{ inputs.artifact_fw_version }}-thingy91x-nrf91.elf | ||
asset-tracker-template-${{ inputs.artifact_fw_version }}-${{ matrix.device }}-nrf91.elf | ||
|
||
- name: Target Tests | ||
working-directory: asset-tracker-template/tests/on_target | ||
|
@@ -133,6 +136,7 @@ jobs: | |
shell: bash | ||
env: | ||
SEGGER: ${{ env.RUNNER_SERIAL_NUMBER }} | ||
DUT_DEVICE_TYPE: ${{ matrix.device }} | ||
UUID: ${{ env.UUID }} | ||
NRFCLOUD_API_KEY: ${{ secrets.NRF_CLOUD_API_KEY }} | ||
LOG_FILENAME: att_test_log | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why we are copying memfault overlay, I think this can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to leave the original pristine I think. In case we decide to do something else with it later. Eg build some config with different memfault token / slug / org etc.