From e18bda29abc19eb7807784775fc3a3017939a69e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 28 Nov 2022 17:01:08 +0100 Subject: actions: msrv: Replace actions-rs with dtolnay Signed-off-by: Matthias Beyer --- .github/workflows/msrv.yml | 42 +++++++++++------------------------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index a3c44d6..e2fb1ea 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -19,10 +19,9 @@ jobs: uses: actions/checkout@v3.1.0 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - name: Run cargo check if: matrix.rust != 'nightly' @@ -53,25 +52,18 @@ jobs: uses: actions/checkout@v3.1.0 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - name: Run cargo test if: matrix.rust != 'nightly' && matrix.rust != '1.56.1' - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features + run: cargo test --all-features - name: Run cargo test (nightly) if: matrix.rust == '1.59.0' continue-on-error: true - uses: actions-rs/cargo@v1 - with: - command: test - args: --tests --all-features + run: cargo test --tests --all-features - name: Run cargo test (nightly) if: matrix.rust == 'nightly' @@ -95,17 +87,13 @@ jobs: uses: actions/checkout@v3.1.0 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true components: rustfmt - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check clippy: needs: [check] @@ -116,17 +104,12 @@ jobs: uses: actions/checkout@v3.1.0 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@1.59.0 with: - toolchain: 1.59.0 - override: true components: clippy - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets --all-features -- -D warnings + run: cargo clippy --all-targets --all-features -- -D warnings check-examples: name: Check examples @@ -143,14 +126,11 @@ jobs: uses: actions/checkout@v3.1.0 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true + components: clippy - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --examples + run: cargo check --examples -- cgit v1.2.3