Skip to content

Commit

Permalink
[ci] Upgrade on-prem macOS pool to macOS-14 Sonoma (#9477)
Browse files Browse the repository at this point in the history
Build and test stages using the physical macOS pool have been updated to
use macOS-14 Sonoma images, and builds will now prefer Apple silicon
over Intel machines.
  • Loading branch information
pjcollins committed Jan 8, 2025
1 parent 1ab6b44 commit 0ccdc57
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
6 changes: 3 additions & 3 deletions build-tools/automation/azure-pipelines-apidocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ stages:
- job: mac_build_update_docs
displayName: Update API Docs
pool:
name: VSEng-VSMac-Xamarin-Shared
name: $(SharedMacPool)
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- macOS.Name -equals $(SharedMacName)
- Agent.OSArchitecture -equals $(SharedMacArch)
timeoutInMinutes: 120
workspace:
clean: all
Expand Down
14 changes: 7 additions & 7 deletions build-tools/automation/azure-pipelines-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ stages:
- job: mac_build_create_installers
displayName: macOS > Create Installers
pool:
name: VSEng-VSMac-Xamarin-Shared
name: $(SharedMacPool)
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- macOS.Name -equals $(SharedMacName)
- Agent.OSArchitecture -equals $(SharedMacArch)
timeoutInMinutes: 420
workspace:
clean: all
Expand Down Expand Up @@ -185,9 +185,9 @@ stages:
strategy:
parallel: 3
pool:
name: VSEng-VSMac-Xamarin-Shared
name: $(SharedMacPool)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals $(SharedMacName)
- macOS.Architecture -equals x64
timeoutInMinutes: 120
workspace:
Expand Down Expand Up @@ -241,9 +241,9 @@ stages:
strategy:
parallel: 6
pool:
name: VSEng-VSMac-Xamarin-Shared
name: $(SharedMacPool)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals $(SharedMacName)
- macOS.Architecture -equals x64
timeoutInMinutes: 150
workspace:
Expand Down
6 changes: 3 additions & 3 deletions build-tools/automation/yaml-templates/build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ stages:
displayName: ${{ parameters.jobDisplayName }}
pool:
${{ if or(eq(variables['Build.DefinitionName'], 'Xamarin.Android-PR'), eq(variables['Build.DefinitionName'], 'Xamarin.Android Nightly')) }}:
name: VSEng-VSMac-Xamarin-Shared
name: $(SharedMacPool)
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- macOS.Name -equals $(SharedMacName)
- Agent.OSArchitecture -equals $(SharedMacArch)
${{ else }}:
name: Azure Pipelines
vmImage: $(HostedMacImage)
Expand Down
4 changes: 2 additions & 2 deletions build-tools/automation/yaml-templates/run-emulator-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- job: mac_${{ parameters.jobName }}_tests
displayName: ${{ parameters.jobName }} Emulator Tests
pool:
name: VSEng-VSMac-Xamarin-Shared
name: $(SharedMacPool)
demands:
- macOS.Name -equals Ventura
- macOS.Name -equals $(SharedMacName)
- macOS.Architecture -equals x64
timeoutInMinutes: ${{ parameters.jobTimeout }}
workspace:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
${{ if eq(parameters.testOS, 'macOS') }}:
pool:
name: Azure Pipelines
vmImage: $(HostedMacImage)
image: $(HostedMacImage)
os: macOS
timeoutInMinutes: 240
cancelTimeoutInMinutes: 5
Expand Down
6 changes: 6 additions & 0 deletions build-tools/automation/yaml-templates/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ variables:
value: $(github--pat--vs-mobiletools-engineering-service2)
- name: HostedMacImage
value: macOS-14
- name: SharedMacPool
value: VSEng-VSMac-Xamarin-Shared
- name: SharedMacName
value: Sonoma
- name: SharedMacArch
value: arm64
- name: HostedWinImage
value: windows-2022
- name: WindowsPoolImage1ESPT
Expand Down

0 comments on commit 0ccdc57

Please sign in to comment.