From 19001ed177ceff1f8250f0d3e723f663a9ac60f1 Mon Sep 17 00:00:00 2001 From: EqUiNoX Date: Wed, 18 Mar 2026 19:56:27 -0600 Subject: [PATCH 1/3] Create build.yml --- .github/workflows/build.yml | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0b51044 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,69 @@ +name: Build Framethrower Denise + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install Dependencies + run: sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib + + - name: Get Pico SDK + run: git clone --branch 2.1.0 --recurse-submodules https://github.com/raspberrypi/pico-sdk.git + + - name: Create Build + run: | + rm -rf build + mkdir -p build + + - name: Build Framethrower Denise + uses: threeal/cmake-action@v2 + id: cmake + with: + source-dir: Firmware + options: | + PICO_SDK_PATH=${{ github.workspace }}/pico-sdk + + - name: List Files + run: ls -lh Firmware/build/** + + - name: Upload UF2 Artifact + uses: actions/upload-artifact@v4 + with: + name: uf2-${{ matrix.board }} + path: Firmware/build/*.uf2 + + release: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Download All Artifacts + uses: actions/download-artifact@v4 + with: + path: output + + - name: Create Draft Release + uses: softprops/action-gh-release@v2.2.2 + #if: github.ref == 'refs/heads/main' + with: + tag_name: latest + draft: true + files: output/**/*.uf2 + + - name: Create Tagged Release + uses: softprops/action-gh-release@v2.2.2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: output/**/*.uf2 From 94a6424ec3095fb84e22aa46750b3188029b5011 Mon Sep 17 00:00:00 2001 From: EqUiNoX Date: Wed, 18 Mar 2026 20:03:52 -0600 Subject: [PATCH 2/3] Update build.yml --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b51044..0945c6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,9 @@ jobs: with: submodules: recursive + - name: Remove Firmware build folder + run: rm -rf Firmware/build + - name: Install Dependencies run: sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib From c94a4c08a1be660c8347d7887cd6950a87dfcbd5 Mon Sep 17 00:00:00 2001 From: EqUiNoX Date: Wed, 18 Mar 2026 20:26:27 -0600 Subject: [PATCH 3/3] Update build.yml --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0945c6a..567564e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,11 +41,13 @@ jobs: - name: List Files run: ls -lh Firmware/build/** - - name: Upload UF2 Artifact + - name: Upload Build Artifacts uses: actions/upload-artifact@v4 with: - name: uf2-${{ matrix.board }} - path: Firmware/build/*.uf2 + name: build-artifacts + path: | + Firmware/build/*.uf2 + Firmware/build/*.bin release: needs: build @@ -63,10 +65,14 @@ jobs: with: tag_name: latest draft: true - files: output/**/*.uf2 + files: | + output/**/*.uf2 + output/**/*.bin - name: Create Tagged Release uses: softprops/action-gh-release@v2.2.2 if: startsWith(github.ref, 'refs/tags/') with: - files: output/**/*.uf2 + files: | + output/**/*.uf2 + output/**/*.bin