From 9f81db7d1da9f93347baca4071569ad938e100d6 Mon Sep 17 00:00:00 2001 From: Jo <10510431+j178@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:05:34 +0800 Subject: [PATCH] Use cache in windows clippy job (#8852) Place the `Swatinem/rust-cache@v2` step after `setup-dev-drive.ps1` to ensure the correct directories are cached. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 044c438f5..c9f3fe09c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,6 @@ jobs: name: "cargo clippy | windows" steps: - uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - name: Create Dev Drive using ReFS run: ${{ github.workspace }}/.github/workflows/setup-dev-drive.ps1 @@ -127,6 +126,10 @@ jobs: run: | Copy-Item -Path "${{ github.workspace }}" -Destination "${{ env.UV_WORKSPACE }}" -Recurse + - uses: Swatinem/rust-cache@v2 + with: + workspaces: ${{ env.UV_WORKSPACE }} + - name: "Install Rust toolchain" run: rustup component add clippy