Create mk3-pt1000.yml

This commit is contained in:
DJsupreme98 2025-09-28 11:55:31 +01:00 committed by GitHub
parent 2aa46dd57b
commit 9e77ca90ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 0 deletions

32
.github/workflows/mk3-pt1000.yml vendored Normal file
View File

@ -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