mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-23 18:08:53 +08:00
resolve comments
This commit is contained in:
12
images/win/post-generation/Create-RustJunction.ps1
Normal file
12
images/win/post-generation/Create-RustJunction.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
# Create Rust junction points to cargo and rustup folder
|
||||
$cargoTarget = "$env:USERPROFILE\.cargo"
|
||||
if (-not (Test-Path $cargoTarget))
|
||||
{
|
||||
New-Item -ItemType Junction -Path $cargoTarget -Target "C:\Rust\.cargo"
|
||||
}
|
||||
|
||||
$rustupTarget = "$env:USERPROFILE\.rustup"
|
||||
if (-not (Test-Path $rustupTarget))
|
||||
{
|
||||
New-Item -ItemType Junction -Path $rustupTarget -Target "C:\Rust\.rustup"
|
||||
}
|
||||
Reference in New Issue
Block a user