Skip to content

Commit

Permalink
Merge branch 'main' into dev/grendel/clr-host
Browse files Browse the repository at this point in the history
* main:
  [ci] Run Mac MSBuild tests on `macos-14-arm64` (#9665)
  • Loading branch information
grendello committed Jan 16, 2025
2 parents 41d075e + db357c7 commit 0438495
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
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

0 comments on commit 0438495

Please sign in to comment.