Peripheral controller #4
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: Peripheral Controller Firmware | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'flake.*' | |
- 'peripheral-controller/firmware/**' | |
pull_request: | |
paths: | |
- 'flake.*' | |
- 'peripheral-controller/firmware/**' | |
jobs: | |
quality: | |
name: Code Quality | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./peripheral-controller/firmware | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- run: rustup target add thumbv6m-none-eabi | |
- name: Clippy | |
run: nix develop --command cargo clippy -- -Dwarnings | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./peripheral-controller/firmware | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- run: rustup target add thumbv6m-none-eabi | |
- name: Build | |
run: | | |
nix develop --command cargo build --release | |
nix develop --command cargo build --release --features panic-probe |