Use Azure Pipelines and workaround for WSL installation (#4215)
* Use Azure Pipelines and workaround for WSL installation
This commit is contained in:
parent
f872841ffc
commit
8891d30f4e
@ -79,7 +79,7 @@
|
||||
"StaticConfigs": {
|
||||
"Win2022": {
|
||||
"OSVmImage": "windows-2022",
|
||||
"Pool": "azsdk-pool-mms-win-2022-general",
|
||||
"Pool": "Azure Pipelines",
|
||||
"RunProxyTests": true,
|
||||
"CMAKE_GENERATOR": "Visual Studio 17 2022"
|
||||
}
|
||||
|
||||
@ -1,8 +1,18 @@
|
||||
[console]::OutputEncoding = New-Object System.Text.UnicodeEncoding
|
||||
|
||||
# Workaround from https://github.com/actions/runner-images/issues/6844#issuecomment-1367225048
|
||||
# At the time of this comment (30-12-2022) this only works on Azure DevOps hosted
|
||||
# agents and doesn't work on 1ES images
|
||||
Write-Host "wsl --update --web-download"
|
||||
wsl --update --web-download | Out-String
|
||||
|
||||
Write-Host "wsl --version"
|
||||
wsl --version
|
||||
|
||||
write-host "WSL install of ubuntu."
|
||||
wsl --install -d Ubuntu-20.04
|
||||
wsl --install -d Ubuntu-20.04 --web-download
|
||||
|
||||
write-host "Launch WSL."
|
||||
[console]::OutputEncoding = New-Object System.Text.UnicodeEncoding
|
||||
$wsl = wsl -l -v | out-string
|
||||
|
||||
write-host $wsl
|
||||
|
||||
Loading…
Reference in New Issue
Block a user