From 77116bef26f60ca3c9acfba9e5bd16f80bf3333c Mon Sep 17 00:00:00 2001 From: Jo <10510431+j178@users.noreply.github.com> Date: Tue, 26 Nov 2024 05:12:43 +0800 Subject: [PATCH] windows ci: Run `cargo clippy` in the dev drive workspace to reuse the cache (#9411) ## Summary In the Windows Clippy job, the workspace is transferred to `UV_WORKSPACE`. However, `cargo clippy` continues to execute in the `github.workspace`, and `Swatinem/rust-cache` only caches the `UV_WORKSPACE/target`, resulting in `cargo clippy` having no cache. This adjustment will take effect when any changes are made to `Cargo.toml` or `Cargo.lock`, prompting `Swatinem/rust-cache` to updat the cache. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7212b303..c49ec179b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,6 +138,7 @@ jobs: run: rustup component add clippy - name: "Clippy" + working-directory: ${{ env.UV_WORKSPACE }} run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings cargo-dev-generate-all: