From ca0d98d61ca053a05fa4b1a146478e44b9515bdf Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Tue, 3 Dec 2024 21:29:19 +0000 Subject: [PATCH] Move rustfmt-check into a separate job --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7860eae..fbc3718 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,18 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - components: clippy, rustfmt - - run: cargo fmt -- --check + components: clippy - run: cargo clippy ${{ matrix.flags }} - run: cargo build ${{ matrix.flags }} - run: cargo test ${{ matrix.flags }} + + rustfmt-check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: nightly + components: rustfmt + - run: cargo fmt -- --check