-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.08 KB
/
build-firmware.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Build firmware"
on:
push:
paths:
- "firmware/**"
- ".github/workflows/build-firmware.yaml"
jobs:
build-firmware:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Update Rust"
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: thumbv6m-none-eabi
- name: "Move to Firmware Folder"
run: cd firmware/
- name: "Build Debug with Cargo"
run: cargo build
- name: "Build Release with Cargo"
run: cargo build --release
- name: "Upload Debug Artifact"
uses: actions/upload-artifact@v4
with:
name: jb_firmware_debug
path: firmware/target/thumbv6m-none-eabi/debug/jukebox_firmware
retention-days: 90
- name: "Upload Debug Artifact"
uses: actions/upload-artifact@v4
with:
name: jb_firmware_release
path: firmware/target/thumbv6m-none-eabi/release/jukebox_firmware
retention-days: 90