mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
* ,oving to the pester approach part #5 * moving to the pester approach part #5 * fixed PostgreSQL tests * return Validate-Svn.ps1 * fixed Selenium test * fixed rust test * fix rust test
This commit is contained in:
committed by
GitHub
parent
956b8a0093
commit
0c4dca229d
@@ -6,8 +6,8 @@
|
||||
Import-Module -Name ImageHelpers
|
||||
|
||||
# Rust Env
|
||||
$env:RUSTUP_HOME="C:\Rust\.rustup"
|
||||
$env:CARGO_HOME="C:\Rust\.cargo"
|
||||
$env:RUSTUP_HOME = "C:\Rust\.rustup"
|
||||
$env:CARGO_HOME = "C:\Rust\.cargo"
|
||||
|
||||
# Download the latest rustup-init.exe for Windows x64
|
||||
# See https://rustup.rs/#
|
||||
@@ -49,3 +49,10 @@ Remove-Item "${env:CARGO_HOME}\registry\*" -Recurse -Force
|
||||
|
||||
# Update Run key to run a script at logon
|
||||
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "RUSTSYM" -Value $cmdPath
|
||||
|
||||
# Create temporary symlinks to properly validate tools version
|
||||
Set-Location -Path $env:UserProfile
|
||||
$null = New-Item -Name ".rustup" -Value $env:RUSTUP_HOME -ItemType Junction
|
||||
$null = New-Item -Name ".cargo" -Value $env:CARGO_HOME -ItemType Junction
|
||||
|
||||
Invoke-PesterTests -TestFile "Rust"
|
||||
Reference in New Issue
Block a user