Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Run Mac MSBuild tests on macos-14-arm64 #9665

Merged
merged 5 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
parameters:
jdkMajorVersion: $(DefaultJavaSdkMajorVersion)
useAgentJdkPath: true
jdkMajorVersion: $(DefaultJavaSdkMajorVersion) # Generally 11|17|21
useAgentJdkPath: true # true to use preinstalled agent JDK, false to use 'android-toolchain/jdk-NN'

steps:
- pwsh: |
$agentOS="$(Agent.OS)"
$agentArch="$(Agent.OSArchitecture)"
$agentArch="$(Agent.OSArchitecture)" -eq "ARM64" ? "arm64" : "$(Agent.OSArchitecture)"
$jdkMajorVersion="${{ parameters.jdkMajorVersion }}"
$xaPrepareJdkPath="$env:HOME/android-toolchain/jdk-$jdkMajorVersion"
if ("$agentOS" -eq "Windows_NT") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stages:
displayName: "macOS > Tests > MSBuild+Emulator"
pool:
name: Azure Pipelines
vmImage: $(HostedMacImage)
vmImage: $(HostedMacImageWithEmulator)
os: macOS
timeoutInMinutes: 180
cancelTimeoutInMinutes: 5
Expand Down Expand Up @@ -89,7 +89,7 @@ stages:
deviceName: wear_square
pool:
name: Azure Pipelines
vmImage: $(HostedMacImage)
vmImage: $(HostedMacImageWithEmulator)
os: macOS
workspace:
clean: all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stages:
testOS: macOS
jobName: mac_msbuild_tests
jobDisplayName: macOS > Tests > MSBuild
agentCount: 14
agentCount: 10
xaSourcePath: ${{ parameters.xaSourcePath }}
repositoryAlias: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.commit }}
Expand All @@ -34,7 +34,7 @@ stages:
testOS: Windows
jobName: win_msbuild_tests
jobDisplayName: Windows > Tests > MSBuild
agentCount: 6
agentCount: 8
xaSourcePath: ${{ parameters.xaSourcePath }}
repositoryAlias: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.commit }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stages:
displayName: macOS > Tests > APKs 1
pool:
name: Azure Pipelines
vmImage: $(HostedMacImage)
vmImage: $(HostedMacImageWithEmulator)
os: macOS
timeoutInMinutes: 180
workspace:
Expand Down Expand Up @@ -120,7 +120,7 @@ stages:
displayName: macOS > Tests > APKs 2
pool:
name: Azure Pipelines
vmImage: $(HostedMacImage)
vmImage: $(HostedMacImageWithEmulator)
os: macOS
timeoutInMinutes: 180
workspace:
Expand Down
4 changes: 3 additions & 1 deletion build-tools/automation/yaml-templates/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variables:
- name: WindowsToolchainPdbArtifactName
value: windows-toolchain-pdb
- name: ApkDiffToolVersion
value: 0.0.15
value: 0.0.17
- name: TestSlicerToolVersion
value: 0.1.0-alpha7
- name: BootsToolVersion
Expand All @@ -30,6 +30,8 @@ variables:
- name: GitHub.Token
value: $(github--pat--vs-mobiletools-engineering-service2)
- name: HostedMacImage
value: macOS-14-arm64
- name: HostedMacImageWithEmulator
value: macOS-14
- name: SharedMacPool
value: VSEng-VSMac-Xamarin-Shared
Expand Down
Loading