From 9e77ca90ba9fdb441a9291a3815f9cec3453b7ee Mon Sep 17 00:00:00 2001 From: DJsupreme98 <94869909+DJsupreme98@users.noreply.github.com> Date: Sun, 28 Sep 2025 11:55:31 +0100 Subject: [PATCH] Create mk3-pt1000.yml --- .github/workflows/mk3-pt1000.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/mk3-pt1000.yml diff --git a/.github/workflows/mk3-pt1000.yml b/.github/workflows/mk3-pt1000.yml new file mode 100644 index 000000000..915fbd324 --- /dev/null +++ b/.github/workflows/mk3-pt1000.yml @@ -0,0 +1,32 @@ +name: MK3 PT1000 Build + +on: + workflow_dispatch: # adds the "Run workflow" button + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Install toolchain + run: | + sudo apt-get update + sudo apt-get install -y cmake ninja-build gcc-avr binutils-avr avr-libc make python3 + + - name: Configure & Compile + run: | + mkdir -p build + cd build + cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="../cmake/AvrGcc.cmake" -DCMAKE_BUILD_TYPE=Release + ninja + + - name: Upload firmware (.hex) + uses: actions/upload-artifact@v4 + with: + name: Firmware + path: build/*.hex