mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
Move WSL installation to toolsets (#3906)
This commit is contained in:
@@ -99,7 +99,7 @@ function InstallAllValidSdks()
|
|||||||
|
|
||||||
ForEach ($sdk in $sdks)
|
ForEach ($sdk in $sdks)
|
||||||
{
|
{
|
||||||
InstallSDKVersion -sdkVersion $sdk.'version'
|
InstallSDKVersion -sdkVersion $sdk.'version' -Warmup $warmup
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (!$release.'sdk'.'version'.Contains('-'))
|
elseif (!$release.'sdk'.'version'.Contains('-'))
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
## File: Install-WSL.ps1
|
|
||||||
## Desc: Install Windows Subsystem for Linux
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
Write-Host "Install Windows Subsystem for Linux"
|
|
||||||
|
|
||||||
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
|
|
||||||
@@ -252,7 +252,9 @@
|
|||||||
{ "name": "NET-Framework-Features", "includeAllSubFeatures": true },
|
{ "name": "NET-Framework-Features", "includeAllSubFeatures": true },
|
||||||
{ "name": "NET-Framework-45-Features", "includeAllSubFeatures": true },
|
{ "name": "NET-Framework-45-Features", "includeAllSubFeatures": true },
|
||||||
{ "name": "FS-iSCSITarget-Server", "includeAllSubFeatures": true, "includeManagementTools": true },
|
{ "name": "FS-iSCSITarget-Server", "includeAllSubFeatures": true, "includeManagementTools": true },
|
||||||
{ "name": "Containers" }
|
{ "name": "Containers" },
|
||||||
|
{ "name": "Microsoft-Windows-Subsystem-Linux", "optionalFeature": true },
|
||||||
|
{ "name": "VirtualMachinePlatform", "optionalFeature": true }
|
||||||
],
|
],
|
||||||
"visualStudio": {
|
"visualStudio": {
|
||||||
"version" : "2019",
|
"version" : "2019",
|
||||||
|
|||||||
@@ -129,14 +129,6 @@
|
|||||||
],
|
],
|
||||||
"execution_policy": "unrestricted"
|
"execution_policy": "unrestricted"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "powershell",
|
|
||||||
"elevated_user": "SYSTEM",
|
|
||||||
"elevated_password": "",
|
|
||||||
"scripts": [
|
|
||||||
"{{ template_dir }}/scripts/Installers/Windows2019/Install-WSL.ps1"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "windows-restart",
|
"type": "windows-restart",
|
||||||
"restart_timeout": "10m"
|
"restart_timeout": "10m"
|
||||||
|
|||||||
Reference in New Issue
Block a user