From 9c93e40650dcd36232b88d5346b80ecfffa786d9 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 25 Jun 2023 15:42:29 +0300 Subject: [PATCH] [CI] Pin specific rustfmt version (#57) * [CI] Specify specific rustfmt version * [CI] Specify platform in CI for rustfmt * [CI] Fix cargo fmt running missing nightly version --- .github/workflows/ci.yml | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69faabe..bde4ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,28 +14,28 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Run Build - run: cargo build --verbose - - name: Run Clippy - run: cargo clippy --verbose - - name: Run Tests - run: cargo test --verbose - - name: Install Formatting nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - components: rustfmt - - name: Run Formatting check - run: cargo +nightly fmt --check --verbose - - name: Install Audit - run: cargo install cargo-audit - - name: Run Audit - run: cargo audit --deny warnings - - name: Install MSRV - uses: actions-rs/toolchain@v1 - with: - toolchain: 1.60.0 - override: true - - name: Run MSRV - run: cargo build + - uses: actions/checkout@v3 + - name: Run Build + run: cargo build --verbose + - name: Run Clippy + run: cargo clippy --verbose + - name: Run Tests + run: cargo test --verbose + - name: Install Audit + run: cargo install cargo-audit + - name: Run Audit + run: cargo audit --deny warnings + - name: Install Formatting nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly-2023-03-01 + components: rustfmt + - name: Run Formatting check + run: cargo +nightly-2023-03-01 fmt --check --verbose + - name: Install MSRV + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.60.0 + override: true + - name: Run MSRV + run: cargo build