Skip to content

Rust linting and formatting #18

Rust linting and formatting

Rust linting and formatting #18

Workflow file for this run

name: Rust linting and formatting
on:
push:
pull_request:
env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
jobs:
stable:
name: Rust
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy,rustfmt
targets: thumbv8m.main-none-eabihf
- run: cargo clippy --no-deps
working-directory: rp
- run: cargo clippy --no-deps
working-directory: web
- run: cargo clippy --no-deps
working-directory: shared
- run: cargo fmt --check