Skip to content

Commit

Permalink
Add uf2 building
Browse files Browse the repository at this point in the history
  • Loading branch information
davnotdev committed Feb 25, 2024
1 parent e59e90f commit 4bf933b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build-uf2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build UF2

on:
push:
branches: ["main"]

jobs:
build:
name: Build UF2
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: llvm-tools-preview
targets: thumbv6m-none-eabi
- name: Setup dependencies
shell: bash
run: |
sudo apt install libudev-dev
cargo install cargo-binutils
cargo install elf2uf2-rs
cargo install flip-link
- name: Compile
shell: bash
run: cargo build-uf2 --release --target thumbv6m-none-eabi
- uses: actions/upload-artifact@v4
with:
name: subway_sprigsters.uf2
path: ./target/thumbv6m-none-eabi/release/subway_sprigsters.uf2
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ rustup component add llvm-tools-preview
cargo install elf2uf2-rs
cargo install probe-run
cargo install flip-link
cargo install wasm-server-runner
```

3. Compile into UF2
Expand Down

0 comments on commit 4bf933b

Please sign in to comment.