mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
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:
parent
5ecfc3d900
commit
6a5e5b33f2
1 changed files with 5 additions and 0 deletions
5
.github/workflows/setup-dev-drive.ps1
vendored
5
.github/workflows/setup-dev-drive.ps1
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue