Use Azure Pipelines and workaround for WSL installation (#4215)

* Use Azure Pipelines and workaround for WSL installation
This commit is contained in:
Daniel Jurek 2023-01-03 10:35:01 -08:00 committed by GitHub
parent f872841ffc
commit 8891d30f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -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"
}

View File

@ -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