Skip to content

gh-actions: Build release bin file #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,41 @@ jobs:
- run: cargo build -p b1display --release
- run: cargo build -p c1minimal --release

- run: |
- name: Convert to UF2 format
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
cargo install elf2uf2-rs
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
- name: Upload UF2 files
uses: actions/upload-artifact@v3
with:
name: inputmodule_fw
name: inputmodule_fw_uf2
path: |
b1display.uf2
c1minimal.uf2
ledmatrix.uf2

- name: Convert to bin format
run: |
sudo apt-get update
sudo apt-get install -y llvm
llvm-objcopy -O binary target/thumbv6m-none-eabi/release/b1display b1display.bin
llvm-objcopy -O binary target/thumbv6m-none-eabi/release/c1minimal c1minimal.bin
llvm-objcopy -O binary target/thumbv6m-none-eabi/release/ledmatrix ledmatrix.bin

- name: Upload bin files
uses: actions/upload-artifact@v3
with:
name: inputmodule_fw_bin
path: |
b1display.bin
c1minimal.bin
ledmatrix.bin

linting:
name: Linting
runs-on: ubuntu-latest
Expand Down