From 58dc2c12bcbe8b2573de64c130e21b4b8293005f Mon Sep 17 00:00:00 2001 From: Dave Allie Date: Mon, 15 Dec 2025 19:53:04 +1100 Subject: [PATCH] Add Github Action to build release firmware on tag --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c8d1c83 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Compile Release +on: + push: + tags: + - '*' + +jobs: + build-release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + with: + submodules: recursive + - uses: actions/cache@v5 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v6 + with: + python-version: '3.14' + + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Build CrossPoint + run: pio run -e gh_release + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: CrossPoint-${{ github.ref_name }} + path: | + .pio/build/gh_release/bootloader.bin + .pio/build/gh_release/firmware.bin + .pio/build/gh_release/firmware.elf + .pio/build/gh_release/firmware.map + .pio/build/gh_release/partitions.bin