mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-02 23:37:18 +08:00
add workaround with ip
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
## Desc: Install Visual Studio
|
||||
################################################################################
|
||||
|
||||
Copy-Item -Path "$env:windir\System32\drivers\etc\hosts" -Destination "$env:temp\hosts_backup"
|
||||
"68.232.34.200 download.visualstudio.microsoft.com" > "$env:windir\System32\drivers\etc\hosts"
|
||||
|
||||
$toolset = Get-ToolsetContent
|
||||
$requiredComponents = $toolset.visualStudio.workloads | ForEach-Object { "--add $_" }
|
||||
$workLoads = @(
|
||||
@@ -47,4 +50,5 @@ if (Test-IsWin19) {
|
||||
Install-Binary -Url $sdkUrl -Name $sdkFileName -ArgumentList $argumentList
|
||||
}
|
||||
|
||||
Invoke-PesterTests -TestFile "VisualStudio"
|
||||
Invoke-PesterTests -TestFile "VisualStudio"
|
||||
Move-Item -Path "$env:temp\hosts_backup" -Destination "$env:windir\System32\drivers\etc\hosts" -Force
|
||||
|
||||
Reference in New Issue
Block a user