summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-11-28 17:01:08 +0100
committerMatthias Beyer <mail@beyermatthias.de>2022-11-28 17:18:52 +0100
commite18bda29abc19eb7807784775fc3a3017939a69e (patch)
tree76c3424cbe973cd31c97a2edaef985bb25c61a8a
parentdc8103b67a01c0a1948176534a2c87c44ba39a0f (diff)
actions: msrv: Replace actions-rs with dtolnay
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.github/workflows/msrv.yml42
1 files 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