From a87cb05bf282413b69d109df517e5a69e7c074d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Mich=C3=A1lek?= Date: Thu, 18 Jul 2024 17:28:03 +0200 Subject: [PATCH] ci: add UF2 --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0414ee0..a49f2ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,6 +65,18 @@ jobs: name: graphical-bootloader-${{ matrix.board.name }}.bin path: build/graphical-bootloader-${{ matrix.board.name }}.bin + - name: Merge binaries into a uf2 image + run: | + . /opt/esp/idf/export.sh + cmake -Daction=merge_binaries_uf2 -P Bootloader.cmake + mv build/uf2.bin build/graphical-bootloader-${{ matrix.board.name }}.uf2 + + - name: Upload UF2 artifact + uses: actions/upload-artifact@v4 + with: + name: graphical-bootloader-${{ matrix.board.name }}.uf2 + path: build/graphical-bootloader-${{ matrix.board.name }}.uf2 + upload-release-assets: needs: build-and-upload runs-on: ubuntu-22.04