Skip to content

Commit

Permalink
gh-actions: Build firmware in release mode
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
  • Loading branch information
JohnAZoidberg committed Jun 28, 2023
1 parent 75c4253 commit 0a4cc4b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ jobs:
- run: cargo build -p ledmatrix
- run: cargo build -p b1display
- run: cargo build -p c1minimal
# TODO: Also build release versions
#- run: cargo build --all --release
- run: cargo build -p ledmatrix --release
- run: cargo build -p b1display --release
- run: cargo build -p c1minimal --release

- run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
cargo install elf2uf2-rs
elf2uf2-rs target/thumbv6m-none-eabi/debug/b1display b1display.uf2
elf2uf2-rs target/thumbv6m-none-eabi/debug/c1minimal c1minimal.uf2
elf2uf2-rs target/thumbv6m-none-eabi/debug/ledmatrix ledmatrix.uf2
elf2uf2-rs target/thumbv6m-none-eabi/release/b1display b1display.uf2
elf2uf2-rs target/thumbv6m-none-eabi/release/c1minimal c1minimal.uf2
elf2uf2-rs target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.uf2
- name: Upload Linux tool
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 0a4cc4b

Please sign in to comment.