From a2b4ffa472b98b68b9b2a9e9ee78b8979e8d37ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Thu, 26 Dec 2024 16:40:18 +0100 Subject: [PATCH] Use `cargo-binstall` to install `cargo-all-features` faster --- .github/workflows/rust.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9d0479d..dcce3e4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,8 +24,12 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - name: check - run: cargo check --all-features --verbose + - name: Install cargo-binstall + uses: cargo-bins/cargo-binstall@v1.10.17 + - name: Install cargo-all-features + run: cargo binstall cargo-all-features + - name: Check + run: cargo check-all-features clippy: runs-on: ubuntu-latest @@ -40,19 +44,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - name: Install cargo-binstall + uses: cargo-bins/cargo-binstall@v1.10.17 + - name: Install cargo-all-features + run: cargo binstall cargo-all-features - name: test - run: cargo test --all-features --verbose - - cargo-all-features: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - name: install - run: cargo install cargo-all-features - - name: check all features - run: cargo check-all-features - - name: test all features run: cargo test-all-features doc: