From 5bb17bcd04607f4efb8190b25e0b5537f3e79356 Mon Sep 17 00:00:00 2001 From: Jakob Krantz Date: Sat, 4 Nov 2023 13:33:02 +0100 Subject: [PATCH] ci: Save frimware binaries as artifacts. --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb04cc74..1c0e01f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,4 +40,13 @@ 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 + cd ${{ matrix.board }}_${{ matrix.built_type }}/zephyr + mv zephyr.hex ${{ matrix.board }}_${{ matrix.built_type }}.hex || true + + - 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 + if-no-files-found: ignore