mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 02:20:20 +08:00
[macOS] Remove macOS 10.13 related code in the VE repo (#4494)
This commit is contained in:
committed by
GitHub
parent
bebaaa653c
commit
5ab1cb345e
@@ -82,10 +82,8 @@ try {
|
||||
}
|
||||
|
||||
try {
|
||||
if ($VMName -notmatch "10.13") {
|
||||
Write-Host "Change CPU count to $CpuCount, cores count to $CoresPerSocketCount, amount of RAM to $Memory"
|
||||
$vm | Set-VM -NumCPU $CpuCount -CoresPerSocket $CoresPerSocketCount -MemoryMB $Memory -Confirm:$false -ErrorAction Stop | Out-Null
|
||||
}
|
||||
Write-Host "Change CPU count to $CpuCount, cores count to $CoresPerSocketCount, amount of RAM to $Memory"
|
||||
$vm | Set-VM -NumCPU $CpuCount -CoresPerSocket $CoresPerSocketCount -MemoryMB $Memory -Confirm:$false -ErrorAction Stop | Out-Null
|
||||
} catch {
|
||||
Write-Host "##vso[task.LogIssue type=error;]Failed to change specs for VM '$VMName'"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user