mirror of
https://github.com/actions/runner-images.git
synced 2026-01-09 03:57:44 +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
@@ -1,16 +0,0 @@
|
||||
name: macOS-10.13_$(date:yyyyMMdd)$(rev:.r)_unstable
|
||||
|
||||
trigger: none
|
||||
pr:
|
||||
autoCancel: true
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
- template: image-generation.yml
|
||||
parameters:
|
||||
image_label: 'macOS High Sierra'
|
||||
base_image_name: 'clean-macOS-10.13.6-380Gb-SIPoff_runner'
|
||||
template_path: 'templates/macOS-10.13.json'
|
||||
target_datastore: 'ds-image'
|
||||
@@ -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