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