Skip to content

Initial commit with working implementation #231

Initial commit with working implementation

Initial commit with working implementation #231

Workflow file for this run

name: Firmware CI Checks
on:
push
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
building:
name: Building
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- run: cargo install flip-link
- run: cargo build -p ledmatrix
- run: cargo build -p b1display
- run: cargo build -p c1minimal
- run: cargo build -p ledmatrix --release
- run: cargo build -p b1display --release
- run: cargo build -p c1minimal --release
- 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 UF2 files
uses: actions/upload-artifact@v3
with:
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
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Rust toolchain
run: rustup show
- run: |
cargo clippy -p b1display -- --deny=warnings
cargo clippy -p c1minimal -- --deny=warnings
cargo clippy -p ledmatrix -- --deny=warnings
formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Rust toolchain
run: rustup show
- run: cargo fmt --all -- --check