switch to 16 bit autopull #29
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: "Install Cargo dependencies" | |
run: cargo install flip-link | |
- name: "Build debug binary with Cargo" | |
run: cd firmware/ && cargo build | |
- name: "Build release binary with Cargo" | |
run: cd firmware/ && cargo build --release | |
- name: "Upload debug binary 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 release binary artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jb_firmware_release | |
path: firmware/target/thumbv6m-none-eabi/release/jukebox_firmware | |
retention-days: 90 |