update build script #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |