Move cargo to the Dev Drive in Windows CI (#10656)

This successfully changed the nextest install to target the dev drive

```
info: cargo-nextest installed at /e/.cargo/bin/cargo-nextest.exe
```
This commit is contained in:
Zanie Blue 2025-01-21 12:43:54 -06:00 committed by GitHub
parent 5ecfc3d900
commit 6a5e5b33f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,10 @@ $Tmp = "$($Drive)\uv-tmp"
# Create the directory ahead of time in an attempt to avoid race-conditions
New-Item $Tmp -ItemType Directory
# Move Cargo to the dev drive
New-Item -Path "$($Drive)/.cargo/bin" -ItemType Directory -Force
Copy-Item -Path "C:/Users/runneradmin/.cargo/*" -Destination "$($Drive)/.cargo/" -Recurse -Force
Write-Output `
"DEV_DRIVE=$($Drive)" `
"TMP=$($Tmp)" `
@ -53,5 +57,6 @@ Write-Output `
"RUSTUP_HOME=$($Drive)/.rustup" `
"CARGO_HOME=$($Drive)/.cargo" `
"UV_WORKSPACE=$($Drive)/uv" `
"PATH=$($Drive)/.cargo/bin;$env:PATH" `
>> $env:GITHUB_ENV