From 017e7fc66d121218dbcc5e744e63b3f3cbb2881f Mon Sep 17 00:00:00 2001 From: Hadrien Grasland Date: Tue, 3 Sep 2024 18:00:15 +0200 Subject: [PATCH] Disable incremental builds, enable cargo-machete --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfead14..bfa8401 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ concurrency: cancel-in-progress: true env: + CARGO_INCREMENTAL: 0 RUSTFLAGS: -D warnings RUSTDOCFLAGS: -D warnings MINIMAL_RUST: 1.74.0 # Minimal Supported Rust Version @@ -73,6 +74,14 @@ jobs: - name: Check clippy lints run: cargo clippy --workspace --all-targets -- -D warnings + - name: Set up cargo-binstall + run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + + - name: Look for unused dependencies with cargo-machete + run: | + cargo binstall -y cargo-machete + cargo machete + - name: Check semver # Not guaranteed to run on nightly, so we use the separate job below if: github.event_name != 'schedule'