From dd2a7ea5385679d6c5d6125d4475bc6dfc36ed30 Mon Sep 17 00:00:00 2001 From: ROMemories Date: Fri, 23 Feb 2024 15:08:04 +0100 Subject: [PATCH] ci(rustfmt): enforce rustfmt formatting --- .github/workflows/main.yml | 15 +++++++++++++++ src/riot-rs-embassy/src/arch/mod.rs | 1 + 2 files changed, 16 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 106ff7aaa..f4e300884 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,6 +98,21 @@ jobs: - name: "rustdoc generation check" run: cargo rustdoc -p riot-rs-embassy -- -D warnings + rustfmt: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install toolchain + uses: dtolnay/rust-toolchain@nightly + with: + components: rustfmt + + - name: Check rustfmt formatting + run: cargo fmt --check --all + CI-success: if: ${{ always() }} runs-on: ubuntu-latest diff --git a/src/riot-rs-embassy/src/arch/mod.rs b/src/riot-rs-embassy/src/arch/mod.rs index e69de29bb..8b1378917 100644 --- a/src/riot-rs-embassy/src/arch/mod.rs +++ b/src/riot-rs-embassy/src/arch/mod.rs @@ -0,0 +1 @@ +