Skip to content

Commit ded66fc

Browse files
authored
Introduce iossimulator RIDs, and convert as needed (#49305)
Previously, we have had four iOS RIDs: iOS-arm iOS-arm64 iOS-x86 iOS-x64 Apple has never shipped an iOS device with an x86 or x64 processor. Instead, the x86/x64 RIDs have meant "iOS simulator with these arches" as opposed to "iOS with these arches". Amongst other things, that means building against a DIFFERENT SDK, iPhoneSimulator.platform vs iPhoneOS.platform In the Apple Silicon future, the iOS simulator is now an ARM64 binary - so we need: iOS-arm iOS-arm64 iOS-arm64, but built against the simulator SDK not the device SDK iOS-x86 iOS-x64 Clearly, there's a problem. The solution is to move the simulators to a different RID, to avoid the overloading issue: iOS-arm iOS-arm64 iOSSimulator-arm64 iOSSimulator-x86 iOSSimulator-x64 This PR introduces the new entries in the RID graph, moves our existing iOS-x{86,64} to iOS-sim-x{86,64}, adds a new iOS-arm64. The above also applies for tvOS, with a smaller set of OSes: tvOS-arm64 tvOSSimulator-arm64 tvOSSimulator-x64 Ref: #48216
1 parent 76954b4 commit ded66fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1044
-123
lines changed

Directory.Build.props

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<TargetOS Condition="'$(TargetOS)' == '' and $([MSBuild]::IsOSPlatform('SOLARIS'))">Solaris</TargetOS>
1818
<TargetOS Condition="'$(TargetOS)' == '' and $([MSBuild]::IsOSUnixLike())">Linux</TargetOS>
1919
<TargetOS Condition="'$(TargetOS)' == '' and $([MSBuild]::IsOSPlatform('WINDOWS'))">windows</TargetOS>
20-
<TargetsMobile Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'MacCatalyst' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'Browser'">true</TargetsMobile>
20+
<TargetsMobile Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'iOSSimulator' or '$(TargetOS)' == 'MacCatalyst' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'tvOSSimulator' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'Browser'">true</TargetsMobile>
2121
</PropertyGroup>
2222

2323
<!-- Platform property is required by RepoLayout.props in Arcade SDK. -->
@@ -124,7 +124,9 @@
124124
<_portableOS Condition="'$(_runtimeOS)' == 'Browser'">browser</_portableOS>
125125
<_portableOS Condition="'$(_runtimeOS)' == 'maccatalyst'">maccatalyst</_portableOS>
126126
<_portableOS Condition="'$(_runtimeOS)' == 'ios'">ios</_portableOS>
127+
<_portableOS Condition="'$(_runtimeOS)' == 'iOSSimulator'">iossimulator</_portableOS>
127128
<_portableOS Condition="'$(_runtimeOS)' == 'tvos'">tvos</_portableOS>
129+
<_portableOS Condition="'$(_runtimeOS)' == 'tvOSSimulator'">tvossimulator</_portableOS>
128130
<_portableOS Condition="'$(_runtimeOS)' == 'android'">android</_portableOS>
129131

130132
<_runtimeOS Condition="$(_runtimeOS.StartsWith('tizen'))">linux</_runtimeOS>
@@ -151,7 +153,7 @@
151153
<_toolRuntimeRID Condition="'$(_runtimeOS)' == 'android' and $([MSBuild]::IsOSPlatform('OSX'))">osx-x64</_toolRuntimeRID>
152154

153155
<!-- There are no Mac Catalyst, iOS or tvOS tools and it can be built on OSX only, so use that -->
154-
<_toolRuntimeRID Condition="'$(_runtimeOS)' == 'maccatalyst' or '$(_runtimeOS)' == 'ios' or '$(_runtimeOS)' == 'tvos'">osx-x64</_toolRuntimeRID>
156+
<_toolRuntimeRID Condition="'$(_runtimeOS)' == 'maccatalyst' or '$(_runtimeOS)' == 'ios' or '$(_runtimeOS)' == 'iOSSimulator' or '$(_runtimeOS)' == 'tvos' or '$(_runtimeOS)' == 'tvOSSimulator'">osx-x64</_toolRuntimeRID>
155157

156158
<MicrosoftNetCoreIlasmPackageRuntimeId>$(_toolRuntimeRID)</MicrosoftNetCoreIlasmPackageRuntimeId>
157159

@@ -168,7 +170,9 @@
168170
<_outputRID Condition="'$(TargetOS)' == 'Solaris'">solaris-$(TargetArchitecture)</_outputRID>
169171
<_outputRID Condition="'$(TargetOS)' == 'MacCatalyst'">maccatalyst-$(TargetArchitecture)</_outputRID>
170172
<_outputRID Condition="'$(TargetOS)' == 'iOS'">ios-$(TargetArchitecture)</_outputRID>
173+
<_outputRID Condition="'$(TargetOS)' == 'iOSSimulator'">iossimulator-$(TargetArchitecture)</_outputRID>
171174
<_outputRID Condition="'$(TargetOS)' == 'tvOS'">tvos-$(TargetArchitecture)</_outputRID>
175+
<_outputRID Condition="'$(TargetOS)' == 'tvOSSimulator'">tvossimulator-$(TargetArchitecture)</_outputRID>
172176
<_outputRID Condition="'$(TargetOS)' == 'Android'">android-$(TargetArchitecture)</_outputRID>
173177
<_outputRID Condition="'$(TargetOS)' == 'Browser'">browser-$(TargetArchitecture)</_outputRID>
174178

@@ -184,10 +188,10 @@
184188
<TargetsNetBSD Condition="'$(TargetOS)' == 'NetBSD'">true</TargetsNetBSD>
185189
<TargetsOSX Condition="'$(TargetOS)' == 'OSX'">true</TargetsOSX>
186190
<TargetsMacCatalyst Condition="'$(TargetOS)' == 'MacCatalyst'">true</TargetsMacCatalyst>
187-
<TargetsiOS Condition="'$(TargetOS)' == 'iOS'">true</TargetsiOS>
188-
<TargetstvOS Condition="'$(TargetOS)' == 'tvOS'">true</TargetstvOS>
189-
<TargetsiOSSimulator Condition="'$(TargetsiOS)' == 'true' and ('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'x86')">true</TargetsiOSSimulator>
190-
<TargetstvOSSimulator Condition="'$(TargetstvOS)' == 'true' and '$(TargetArchitecture)' == 'x64'">true</TargetstvOSSimulator>
191+
<TargetsiOS Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'iOSSimulator'">true</TargetsiOS>
192+
<TargetstvOS Condition="'$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'tvOSSimulator'">true</TargetstvOS>
193+
<TargetsiOSSimulator Condition="'$(TargetOS)' == 'iOSSimulator'">true</TargetsiOSSimulator>
194+
<TargetstvOSSimulator Condition="'$(TargetOS)' == 'tvOSSimulator'">true</TargetstvOSSimulator>
191195
<TargetsAndroid Condition="'$(TargetOS)' == 'Android'">true</TargetsAndroid>
192196
<TargetsBrowser Condition="'$(TargetOS)' == 'Browser'">true</TargetsBrowser>
193197
<TargetsWindows Condition="'$(TargetOS)' == 'windows'">true</TargetsWindows>

eng/Subsets.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
</ItemGroup>
213213

214214
<!-- Mono sets -->
215-
<ItemGroup Condition="$(_subset.Contains('+mono.llvm+')) or $(_subset.Contains('+mono.aotcross+')) or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'Browser'">
215+
<ItemGroup Condition="$(_subset.Contains('+mono.llvm+')) or $(_subset.Contains('+mono.aotcross+')) or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'iOSSimulator' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'tvOSSimulator' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'Browser'">
216216
<ProjectToBuild Include="$(MonoProjectRoot)llvm\llvm-init.proj" Category="mono" />
217217
</ItemGroup>
218218

eng/build.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ usage()
2828
echo " --help (-h) Print help and exit."
2929
echo " --librariesConfiguration (-lc) Libraries build configuration: Debug or Release."
3030
echo " [Default: Debug]"
31-
echo " --os Target operating system: windows, Linux, FreeBSD, OSX, MacCatalyst, tvOS, iOS, Android,"
32-
echo " Browser, NetBSD, illumos or Solaris."
31+
echo " --os Target operating system: windows, Linux, FreeBSD, OSX, MacCatalyst, tvOS,"
32+
echo " tvOSSimulator, iOS, iOSSimulator, Android, Browser, NetBSD, illumos or Solaris."
3333
echo " [Default: Your machine's OS.]"
3434
echo " --projects <value> Project or solution file(s) to build."
3535
echo " --runtimeConfiguration (-rc) Runtime build configuration: Debug, Release or Checked."
@@ -266,8 +266,12 @@ while [[ $# > 0 ]]; do
266266
os="MacCatalyst" ;;
267267
tvos)
268268
os="tvOS" ;;
269+
tvossimulator)
270+
os="tvOSSimulator" ;;
269271
ios)
270272
os="iOS" ;;
273+
iossimulator)
274+
os="iOSSimulator" ;;
271275
android)
272276
os="Android" ;;
273277
browser)
@@ -278,7 +282,7 @@ while [[ $# > 0 ]]; do
278282
os="Solaris" ;;
279283
*)
280284
echo "Unsupported target OS '$2'."
281-
echo "The allowed values are windows, Linux, FreeBSD, OSX, MacCatalyst, tvOS, iOS, Android, Browser, illumos and Solaris."
285+
echo "The allowed values are windows, Linux, FreeBSD, OSX, MacCatalyst, tvOS, tvOSSimulator, iOS, iOSSimulator, Android, Browser, illumos and Solaris."
282286
exit 1
283287
;;
284288
esac

eng/native/build-commons.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@ fi
462462
if [[ "$__BuildArch" == wasm ]]; then
463463
# nothing to do here
464464
true
465-
elif [[ "$__TargetOS" == iOS ]]; then
465+
elif [[ "$__TargetOS" == iOS || "$__TargetOS" == iOSSimulator ]]; then
466466
# nothing to do here
467467
true
468-
elif [[ "$__TargetOS" == tvOS ]]; then
468+
elif [[ "$__TargetOS" == tvOS || "$__TargetOS" == tvOSSimulator ]]; then
469469
# nothing to do here
470470
true
471471
elif [[ "$__TargetOS" == Android ]]; then

eng/native/configureplatform.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if(CLR_CMAKE_HOST_OS STREQUAL Darwin)
8888
set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>")
8989
endif(CLR_CMAKE_HOST_OS STREQUAL Darwin)
9090

91-
if(CLR_CMAKE_HOST_OS STREQUAL iOS)
91+
if(CLR_CMAKE_HOST_OS STREQUAL iOS OR CLR_CMAKE_HOST_OS STREQUAL iOSSimulator)
9292
set(CLR_CMAKE_HOST_UNIX 1)
9393
set(CLR_CMAKE_HOST_IOS 1)
9494
if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
@@ -102,9 +102,9 @@ if(CLR_CMAKE_HOST_OS STREQUAL iOS)
102102
else()
103103
clr_unknown_arch()
104104
endif()
105-
endif(CLR_CMAKE_HOST_OS STREQUAL iOS)
105+
endif(CLR_CMAKE_HOST_OS STREQUAL iOS OR CLR_CMAKE_HOST_OS STREQUAL iOSSimulator)
106106

107-
if(CLR_CMAKE_HOST_OS STREQUAL tvOS)
107+
if(CLR_CMAKE_HOST_OS STREQUAL tvOS OR CLR_CMAKE_HOST_OS STREQUAL tvOSSimulator)
108108
set(CLR_CMAKE_HOST_UNIX 1)
109109
set(CLR_CMAKE_HOST_TVOS 1)
110110
if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
@@ -114,7 +114,7 @@ if(CLR_CMAKE_HOST_OS STREQUAL tvOS)
114114
else()
115115
clr_unknown_arch()
116116
endif()
117-
endif(CLR_CMAKE_HOST_OS STREQUAL tvOS)
117+
endif(CLR_CMAKE_HOST_OS STREQUAL tvOS OR CLR_CMAKE_HOST_OS STREQUAL tvOSSimulator)
118118

119119
if(CLR_CMAKE_HOST_OS STREQUAL Android)
120120
set(CLR_CMAKE_HOST_UNIX 1)
@@ -300,20 +300,20 @@ if(CLR_CMAKE_TARGET_OS STREQUAL Darwin)
300300
set(CLR_CMAKE_TARGET_OSX 1)
301301
endif(CLR_CMAKE_TARGET_OS STREQUAL Darwin)
302302

303-
if(CLR_CMAKE_TARGET_OS STREQUAL iOS)
303+
if(CLR_CMAKE_TARGET_OS STREQUAL iOS OR CLR_CMAKE_TARGET_OS STREQUAL iOSSimulator)
304304
set(CLR_CMAKE_TARGET_UNIX 1)
305305
set(CLR_CMAKE_TARGET_IOS 1)
306-
endif(CLR_CMAKE_TARGET_OS STREQUAL iOS)
306+
endif(CLR_CMAKE_TARGET_OS STREQUAL iOS OR CLR_CMAKE_TARGET_OS STREQUAL iOSSimulator)
307307

308308
if(CLR_CMAKE_TARGET_OS STREQUAL MacCatalyst)
309309
set(CLR_CMAKE_TARGET_UNIX 1)
310310
set(CLR_CMAKE_TARGET_MACCATALYST 1)
311311
endif(CLR_CMAKE_TARGET_OS STREQUAL MacCatalyst)
312312

313-
if(CLR_CMAKE_TARGET_OS STREQUAL tvOS)
313+
if(CLR_CMAKE_TARGET_OS STREQUAL tvOS OR CLR_CMAKE_TARGET_OS STREQUAL tvOSSimulator)
314314
set(CLR_CMAKE_TARGET_UNIX 1)
315315
set(CLR_CMAKE_TARGET_TVOS 1)
316-
endif(CLR_CMAKE_TARGET_OS STREQUAL tvOS)
316+
endif(CLR_CMAKE_TARGET_OS STREQUAL tvOS OR CLR_CMAKE_TARGET_OS STREQUAL tvOSSimulator)
317317

318318
if(CLR_CMAKE_TARGET_OS STREQUAL FreeBSD)
319319
set(CLR_CMAKE_TARGET_UNIX 1)

eng/native/init-distro-rid.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,12 @@ initDistroRidGlobal()
174174
distroRid="maccatalyst-$buildArch"
175175
elif [ "$targetOs" = "tvOS" ]; then
176176
distroRid="tvos-$buildArch"
177+
elif [ "$targetOs" = "tvOSSimulator" ]; then
178+
distroRid="tvossimulator-$buildArch"
177179
elif [ "$targetOs" = "iOS" ]; then
178180
distroRid="ios-$buildArch"
181+
elif [ "$targetOs" = "iOSSimulator" ]; then
182+
distroRid="iossimulator-$buildArch"
179183
elif [ "$targetOs" = "Android" ]; then
180184
distroRid="android-$buildArch"
181185
elif [ "$targetOs" = "Browser" ]; then

eng/pipelines/common/platform-matrix.yml

Lines changed: 73 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -385,18 +385,39 @@ jobs:
385385
helixQueueGroup: ${{ parameters.helixQueueGroup }}
386386
${{ insert }}: ${{ parameters.jobParameters }}
387387

388-
# tvOS x64
388+
# tvOS arm64
389389

390-
- ${{ if containsValue(parameters.platforms, 'tvOS_x64') }}:
390+
- ${{ if containsValue(parameters.platforms, 'tvOS_arm64') }}:
391391
- template: xplat-setup.yml
392392
parameters:
393393
jobTemplate: ${{ parameters.jobTemplate }}
394394
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
395395
variables: ${{ parameters.variables }}
396396
osGroup: tvOS
397+
archType: arm64
398+
targetRid: tvos-arm64
399+
platform: tvOS_arm64
400+
jobParameters:
401+
runtimeFlavor: mono
402+
stagedBuild: ${{ parameters.stagedBuild }}
403+
buildConfig: ${{ parameters.buildConfig }}
404+
${{ if eq(parameters.passPlatforms, true) }}:
405+
platforms: ${{ parameters.platforms }}
406+
helixQueueGroup: ${{ parameters.helixQueueGroup }}
407+
${{ insert }}: ${{ parameters.jobParameters }}
408+
409+
# tvOS Simulator x64
410+
411+
- ${{ if containsValue(parameters.platforms, 'tvOSSimulator_x64') }}:
412+
- template: xplat-setup.yml
413+
parameters:
414+
jobTemplate: ${{ parameters.jobTemplate }}
415+
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
416+
variables: ${{ parameters.variables }}
417+
osGroup: tvOSSimulator
397418
archType: x64
398-
targetRid: tvos-x64
399-
platform: tvOS_x64
419+
targetRid: tvossimulator-x64
420+
platform: tvOSSimulatorim_x64
400421
jobParameters:
401422
runtimeFlavor: mono
402423
stagedBuild: ${{ parameters.stagedBuild }}
@@ -406,18 +427,18 @@ jobs:
406427
helixQueueGroup: ${{ parameters.helixQueueGroup }}
407428
${{ insert }}: ${{ parameters.jobParameters }}
408429

409-
# tvOS arm64
430+
# tvOS Simulator arm64
410431

411-
- ${{ if containsValue(parameters.platforms, 'tvOS_arm64') }}:
432+
- ${{ if containsValue(parameters.platforms, 'tvOSSimulator_arm64') }}:
412433
- template: xplat-setup.yml
413434
parameters:
414435
jobTemplate: ${{ parameters.jobTemplate }}
415436
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
416437
variables: ${{ parameters.variables }}
417-
osGroup: tvOS
438+
osGroup: tvOSSimulator
418439
archType: arm64
419-
targetRid: tvos-arm64
420-
platform: tvOS_arm64
440+
targetRid: tvossimulator-arm64
441+
platform: tvOSSimulator_arm64
421442
jobParameters:
422443
runtimeFlavor: mono
423444
stagedBuild: ${{ parameters.stagedBuild }}
@@ -427,18 +448,18 @@ jobs:
427448
helixQueueGroup: ${{ parameters.helixQueueGroup }}
428449
${{ insert }}: ${{ parameters.jobParameters }}
429450

430-
# iOS x64
451+
# iOS arm
431452

432-
- ${{ if containsValue(parameters.platforms, 'iOS_x64') }}:
453+
- ${{ if containsValue(parameters.platforms, 'iOS_arm') }}:
433454
- template: xplat-setup.yml
434455
parameters:
435456
jobTemplate: ${{ parameters.jobTemplate }}
436457
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
437458
variables: ${{ parameters.variables }}
438459
osGroup: iOS
439-
archType: x64
440-
targetRid: ios-x64
441-
platform: iOS_x64
460+
archType: arm
461+
targetRid: ios-arm
462+
platform: iOS_arm
442463
jobParameters:
443464
runtimeFlavor: mono
444465
stagedBuild: ${{ parameters.stagedBuild }}
@@ -448,40 +469,39 @@ jobs:
448469
helixQueueGroup: ${{ parameters.helixQueueGroup }}
449470
${{ insert }}: ${{ parameters.jobParameters }}
450471

451-
# iOS x86
472+
# iOS arm64
452473

453-
- ${{ if containsValue(parameters.platforms, 'iOS_x86') }}:
474+
- ${{ if containsValue(parameters.platforms, 'iOS_arm64') }}:
454475
- template: xplat-setup.yml
455476
parameters:
456477
jobTemplate: ${{ parameters.jobTemplate }}
457478
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
458479
variables: ${{ parameters.variables }}
459480
osGroup: iOS
460-
archType: x86
461-
targetRid: ios-x86
462-
platform: iOS_x86
481+
archType: arm64
482+
targetRid: ios-arm64
483+
platform: iOS_arm64
463484
jobParameters:
464485
runtimeFlavor: mono
465486
stagedBuild: ${{ parameters.stagedBuild }}
466487
buildConfig: ${{ parameters.buildConfig }}
467488
${{ if eq(parameters.passPlatforms, true) }}:
468489
platforms: ${{ parameters.platforms }}
469490
helixQueueGroup: ${{ parameters.helixQueueGroup }}
470-
managedTestBuildOsGroup: OSX
471491
${{ insert }}: ${{ parameters.jobParameters }}
472492

473-
# iOS arm
493+
# iOS Simulator x64
474494

475-
- ${{ if containsValue(parameters.platforms, 'iOS_arm') }}:
495+
- ${{ if containsValue(parameters.platforms, 'iOSSimulator_x64') }}:
476496
- template: xplat-setup.yml
477497
parameters:
478498
jobTemplate: ${{ parameters.jobTemplate }}
479499
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
480500
variables: ${{ parameters.variables }}
481-
osGroup: iOS
482-
archType: arm
483-
targetRid: ios-arm
484-
platform: iOS_arm
501+
osGroup: iOSSimulator
502+
archType: x64
503+
targetRid: iossimulator-x64
504+
platform: iOSSimulator_x64
485505
jobParameters:
486506
runtimeFlavor: mono
487507
stagedBuild: ${{ parameters.stagedBuild }}
@@ -491,18 +511,40 @@ jobs:
491511
helixQueueGroup: ${{ parameters.helixQueueGroup }}
492512
${{ insert }}: ${{ parameters.jobParameters }}
493513

494-
# iOS arm64
514+
# iOS Simulator x86
495515

496-
- ${{ if containsValue(parameters.platforms, 'iOS_arm64') }}:
516+
- ${{ if containsValue(parameters.platforms, 'iOSSimulator_x86') }}:
497517
- template: xplat-setup.yml
498518
parameters:
499519
jobTemplate: ${{ parameters.jobTemplate }}
500520
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
501521
variables: ${{ parameters.variables }}
502-
osGroup: iOS
522+
osGroup: iOSSimulator
523+
archType: x86
524+
targetRid: iossimulator-x86
525+
platform: iOSsimulator_x86
526+
jobParameters:
527+
runtimeFlavor: mono
528+
stagedBuild: ${{ parameters.stagedBuild }}
529+
buildConfig: ${{ parameters.buildConfig }}
530+
${{ if eq(parameters.passPlatforms, true) }}:
531+
platforms: ${{ parameters.platforms }}
532+
helixQueueGroup: ${{ parameters.helixQueueGroup }}
533+
managedTestBuildOsGroup: OSX
534+
${{ insert }}: ${{ parameters.jobParameters }}
535+
536+
# iOS Simulator arm64
537+
538+
- ${{ if containsValue(parameters.platforms, 'iOSSimulator_arm64') }}:
539+
- template: xplat-setup.yml
540+
parameters:
541+
jobTemplate: ${{ parameters.jobTemplate }}
542+
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
543+
variables: ${{ parameters.variables }}
544+
osGroup: iOSSimulator
503545
archType: arm64
504-
targetRid: ios-arm64
505-
platform: iOS_arm64
546+
targetRid: iossimulator-arm64
547+
platform: iOSSimulator_arm64
506548
jobParameters:
507549
runtimeFlavor: mono
508550
stagedBuild: ${{ parameters.stagedBuild }}

eng/pipelines/common/templates/runtimes/build-test-job.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
artifactName: '$(coreClrProductArtifactName)'
117117
displayName: 'CoreCLR product build'
118118

119-
- ${{ if in(parameters.osGroup, 'OSX', 'iOS','tvOS') }}:
119+
- ${{ if in(parameters.osGroup, 'OSX', 'iOS', 'tvOS') }}:
120120
- script: |
121121
du -sh $(Build.SourcesDirectory)/*
122122
df -h
@@ -126,7 +126,7 @@ jobs:
126126
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(crossArg) $(priorityArg) ci $(librariesOverrideArg)
127127
displayName: Build managed test components
128128

129-
- ${{ if in(parameters.osGroup, 'OSX', 'iOS','tvOS') }}:
129+
- ${{ if in(parameters.osGroup, 'OSX', 'iOS', 'tvOS') }}:
130130
- script: |
131131
du -sh $(Build.SourcesDirectory)/*
132132
df -h

eng/pipelines/common/xplat-setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
queue: BuildPool.Ubuntu.1604.Amd64
121121

122122
# OSX Build Pool (we don't have on-prem OSX BuildPool
123-
${{ if in(parameters.osGroup, 'OSX', 'MacCatalyst', 'iOS', 'tvOS') }}:
123+
${{ if in(parameters.osGroup, 'OSX', 'MacCatalyst', 'iOS', 'iOSSimulator', 'tvOS', 'tvOSSimulator') }}:
124124
vmImage: 'macOS-10.15'
125125

126126
# Official Build Windows Pool

0 commit comments

Comments
 (0)