mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Add Wireless LAN feature (#9373)
* [Windows] Add Wireless LAN feature * Change WLAN service startup type to manual * Update template directly
This commit is contained in:
@@ -13,6 +13,10 @@ Describe "WindowsFeatures" {
|
|||||||
it "Check WSL is on path" {
|
it "Check WSL is on path" {
|
||||||
(Get-Command -Name 'wsl') | Should -BeTrue
|
(Get-Command -Name 'wsl') | Should -BeTrue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
it "Check WLAN service is stopped" {
|
||||||
|
(Get-Service -Name wlansvc).Status | Should -Be "Stopped"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "DiskSpace" {
|
Describe "DiskSpace" {
|
||||||
|
|||||||
@@ -272,6 +272,10 @@ build {
|
|||||||
restart_timeout = "30m"
|
restart_timeout = "30m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
provisioner "powershell" {
|
||||||
|
inline = ["Set-Service -Name wlansvc -StartupType Manual", "if ($(Get-Service -Name wlansvc).Status -eq 'Running') { Stop-Service -Name wlansvc}"]
|
||||||
|
}
|
||||||
|
|
||||||
provisioner "powershell" {
|
provisioner "powershell" {
|
||||||
environment_vars = ["IMAGE_FOLDER=${var.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${var.image_folder}"]
|
||||||
scripts = [
|
scripts = [
|
||||||
|
|||||||
@@ -263,6 +263,10 @@ build {
|
|||||||
restart_timeout = "10m"
|
restart_timeout = "10m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
provisioner "powershell" {
|
||||||
|
inline = ["Set-Service -Name wlansvc -StartupType Manual", "if ($(Get-Service -Name wlansvc).Status -eq 'Running') { Stop-Service -Name wlansvc}"]
|
||||||
|
}
|
||||||
|
|
||||||
provisioner "powershell" {
|
provisioner "powershell" {
|
||||||
environment_vars = ["IMAGE_FOLDER=${var.image_folder}"]
|
environment_vars = ["IMAGE_FOLDER=${var.image_folder}"]
|
||||||
scripts = [
|
scripts = [
|
||||||
|
|||||||
@@ -260,7 +260,8 @@
|
|||||||
{ "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": "Microsoft-Windows-Subsystem-Linux", "optionalFeature": true },
|
||||||
{ "name": "VirtualMachinePlatform", "optionalFeature": true }
|
{ "name": "VirtualMachinePlatform", "optionalFeature": true },
|
||||||
|
{ "name": "Wireless-Networking" }
|
||||||
],
|
],
|
||||||
"visualStudio": {
|
"visualStudio": {
|
||||||
"version" : "2019",
|
"version" : "2019",
|
||||||
|
|||||||
@@ -170,7 +170,8 @@
|
|||||||
{ "name": "NET-Framework-Features", "includeAllSubFeatures": true },
|
{ "name": "NET-Framework-Features", "includeAllSubFeatures": true },
|
||||||
{ "name": "Hyper-V", "includeAllSubFeatures": true },
|
{ "name": "Hyper-V", "includeAllSubFeatures": true },
|
||||||
{ "name": "HypervisorPlatform", "optionalFeature": true },
|
{ "name": "HypervisorPlatform", "optionalFeature": true },
|
||||||
{ "name": "Hyper-V-PowerShell" }
|
{ "name": "Hyper-V-PowerShell" },
|
||||||
|
{ "name": "Wireless-Networking" }
|
||||||
],
|
],
|
||||||
"visualStudio": {
|
"visualStudio": {
|
||||||
"version" : "2022",
|
"version" : "2022",
|
||||||
|
|||||||
Reference in New Issue
Block a user