diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb04cc74..2bf6a8f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,8 +12,8 @@ jobs: CMAKE_PREFIX_PATH: /opt/toolchains strategy: matrix: - built_type: [debug, release] - board: [zswatch_nrf5340_cpuapp@1, zswatch_nrf5340_cpuapp@3, native_posix, nrf5340dk_nrf5340_cpuapp] + built_type: [debug] + board: [zswatch_nrf5340_cpuapp@3] steps: - name: Checkout uses: actions/checkout@v3 @@ -40,4 +40,16 @@ jobs: - name: Build firmware working-directory: ZSWatch run: | - west build app -p -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=boards/${{ matrix.built_type }}.conf + west build app --build-dir ${{ matrix.board }}_${{ matrix.built_type }} -p -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=boards/${{ matrix.built_type }}.conf + ls + cd ${{ matrix.board }}_${{ matrix.built_type }}/zephyr + ls + mv zephyr.hex ${{ matrix.board }}_${{ matrix.built_type }}.hex + ls + pwd + + - name : Upload Firmware + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.board }}_${{ matrix.built_type }} + path: ZSWatch/${{ matrix.board }}_${{ matrix.built_type }}/zephyr/${{ matrix.board }}_${{ matrix.built_type }}.hex