@@ -35,28 +35,33 @@ inputs:
3535runs :
3636 using : " composite"
3737 steps :
38- - name : Set up environment
38+ - name : Set up debug build overlays
3939 working-directory : ${{ inputs.path }}
40- id : setup
40+ if : ${{ inputs.debug }}
4141 shell : bash
4242 run : |
43- cp overlay-memfault.conf overlay-memfault-att.conf
44- if [[ "${{ inputs.debug }}" == "true" ]]; then
45- cat overlay-etb.conf >> overlay-memfault-att.conf
46- fi
47- echo CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ inputs.memfault_project_key }}\" >> overlay-memfault-att.conf
48- echo CONFIG_MEMFAULT_NCS_FW_VERSION_AUTO=y >> overlay-memfault-att.conf
49- echo CONFIG_MEMFAULT_NCS_FW_VERSION_PREFIX=\"${{ inputs.memfault_fw_version_prefix }}+\" >> overlay-memfault-att.conf
50- echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ inputs.memfault_fw_type }}\" >> overlay-memfault-att.conf
43+ cp overlay-memfault.conf overlay-debug-att.conf
44+ cat overlay-upload-modem-traces-to-memfault.conf >> overlay-debug-att.conf
45+ cat overlay-etb.conf >> overlay-debug-att.conf
46+ echo CONFIG_MEMFAULT_NCS_PROJECT_KEY=\"${{ inputs.memfault_project_key }}\" >> overlay-debug-att.conf
47+ echo CONFIG_MEMFAULT_NCS_FW_VERSION_AUTO=y >> overlay-debug-att.conf
48+ echo CONFIG_MEMFAULT_NCS_FW_VERSION_PREFIX=\"${{ inputs.memfault_fw_version_prefix }}+\" >> overlay-debug-att.conf
49+ echo CONFIG_MEMFAULT_NCS_FW_TYPE=\"${{ inputs.memfault_fw_type }}\" >> overlay-debug-att.conf
5150
5251 - name : Build firmware
5352 working-directory : ${{ inputs.path }}
5453 shell : bash
5554 run : |
56- west build -b ${{ inputs.board }} \
57- -d build \
58- -p --sysbuild \
59- -- -DEXTRA_CONF_FILE="overlay-memfault-att.conf" 2>&1 | tee ../../artifacts/build_output_${{ inputs.short_board }}.log
55+ if [[ "${{ inputs.debug }}" == "true" ]]; then
56+ west build -b ${{ inputs.board }} \
57+ -d build \
58+ -p --sysbuild \
59+ -- -DEXTRA_CONF_FILE="overlay-debug-att.conf" 2>&1 | tee ../../artifacts/build_output_${{ inputs.short_board }}_debug.log
60+ else
61+ west build -b ${{ inputs.board }} \
62+ -d build \
63+ -p --sysbuild 2>&1 | tee ../../artifacts/build_output_${{ inputs.short_board }}.log
64+ fi
6065
6166 - name : Copy artifacts
6267 shell : bash
8085 - name : Generate Partition Manager Report
8186 shell : bash
8287 run : |
83- sed '1d' ${{ inputs.path }}/build/partition_manager_report.txt > artifacts/pmr-${{ inputs.short_board }}-nrf91-default-${{ steps.setup.outputs.VERSION }}.txt
88+ sed '1d' ${{ inputs.path }}/build/partition_manager_report.txt > artifacts/pmr-${{ inputs.short_board }}-nrf91-default-${{ inputs.version }}.txt
0 commit comments