From 77e3626061686966d496256a6f8623f7ca29bb34 Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Thu, 4 Apr 2024 11:07:42 +1100 Subject: [PATCH] Enforce Rust code format on CI --- .github/workflows/rust.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b23d41ed..33d1fa95 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,6 +13,17 @@ jobs: run: rustup component add clippy - name: Run clippy run: cargo clippy -- -D warnings + fmt: + name: rustfmt-check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: Check format + run: cargo fmt --all --check no-std: name: no-std lint runs-on: ubuntu-latest