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.
This commit is contained in:
Jo 2024-11-06 13:05:34 +08:00 committed by GitHub
parent 129c6f61d4
commit 9f81db7d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -117,7 +117,6 @@ jobs:
name: "cargo clippy | windows" name: "cargo clippy | windows"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Create Dev Drive using ReFS - name: Create Dev Drive using ReFS
run: ${{ github.workspace }}/.github/workflows/setup-dev-drive.ps1 run: ${{ github.workspace }}/.github/workflows/setup-dev-drive.ps1
@ -127,6 +126,10 @@ jobs:
run: | run: |
Copy-Item -Path "${{ github.workspace }}" -Destination "${{ env.UV_WORKSPACE }}" -Recurse Copy-Item -Path "${{ github.workspace }}" -Destination "${{ env.UV_WORKSPACE }}" -Recurse
- uses: Swatinem/rust-cache@v2
with:
workspaces: ${{ env.UV_WORKSPACE }}
- name: "Install Rust toolchain" - name: "Install Rust toolchain"
run: rustup component add clippy run: rustup component add clippy