From 8891d30f4eec329ea2f1399082568e752a788480 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Tue, 3 Jan 2023 10:35:01 -0800 Subject: [PATCH] Use Azure Pipelines and workaround for WSL installation (#4215) * Use Azure Pipelines and workaround for WSL installation --- .../templates/stages/platform-matrix.json | 2 +- eng/scripts/Install-WSL.ps1 | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json index f0d4f0f2d..71ad6463f 100644 --- a/eng/pipelines/templates/stages/platform-matrix.json +++ b/eng/pipelines/templates/stages/platform-matrix.json @@ -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" } diff --git a/eng/scripts/Install-WSL.ps1 b/eng/scripts/Install-WSL.ps1 index 1230632df..b0c53fdb5 100644 --- a/eng/scripts/Install-WSL.ps1 +++ b/eng/scripts/Install-WSL.ps1 @@ -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