From 36ebe9a4a6220ab477dd796e11e3fee43cc2c2bb Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Wed, 8 Mar 2023 16:33:32 +0100 Subject: [PATCH] CI: Install toolchain in one step Instead of two steps installing the toolchain, do it one step. Removes the unmaintained action-rs/toolchain action. Installs stable clippy instead of nightly clippy. --- .github/workflows/cbindgen.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cbindgen.yml b/.github/workflows/cbindgen.yml index f2614e9..4d4f55d 100644 --- a/.github/workflows/cbindgen.yml +++ b/.github/workflows/cbindgen.yml @@ -17,12 +17,9 @@ jobs: - uses: actions/checkout@v2 - name: Install stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true - components: rustfmt + components: "clippy, rustfmt" - name: Run rustfmt uses: actions-rs/cargo@v1 @@ -30,9 +27,6 @@ jobs: command: fmt args: -- --check - - name: Install clippy - uses: dtolnay/rust-toolchain@clippy - - name: Run clippy run: | cargo clippy --workspace -- -D warnings