From 5d6fc6f6da5627c94127f57793c9c02eb45f2ebf Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Wed, 11 Dec 2024 10:36:17 +0100 Subject: [PATCH] Replace actions-rs by dtolnay/rust-toolchain Signed-off-by: Daniel Egger --- .github/workflows/ci.yml | 10 ++-------- .github/workflows/clippy.yml | 9 ++------- .github/workflows/rustfmt.yml | 10 ++-------- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 083b412..64b8520 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,5 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: test + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all-features diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 74a756c..76586ce 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -9,12 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: clippy - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} + - run: cargo clippy --tests -- -Dclippy::all diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index 253140f..1ce6e53 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -11,13 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo --all -- --check