Skip to content

Commit f46113d

Browse files
authored
Use fixed iOS simulator runtime version in mac.yml iphone_simulator job (#25794)
### Description <!-- Describe your changes. --> Set iOS simulator runtime version to 18.5 in mac.yml iphone_simulator job. This job uses Xcode 16.4. According to this table, the corresponding simulator SDK version is 18.5. https://github.com/actions/runner-images/blob/da7977bf2699f44e70b7d3c3352dedb0da38db9c/images/macos/macos-15-arm64-Readme.md?plain=1#L181 ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Address intermittent CI build timeouts.
1 parent c96503e commit f46113d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/mac.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
{"machine": "arm64", "target": "arm64", "build_config": "Debug"},
4040
{"machine": "arm64", "target": "arm64", "build_config": "Release"}
4141
]
42+
4243
xnnpack:
4344
uses: ./.github/workflows/macos-ci-build-and-test-workflow.yml
4445
with:
@@ -59,11 +60,13 @@ jobs:
5960
{"machine": "arm64", "target": "arm64", "build_config": "Debug"},
6061
{"machine": "arm64", "target": "arm64", "build_config": "Release"}
6162
]
63+
6264
iphone_simulator:
6365
runs-on: macos-15
6466

6567
env:
6668
xcode_version: 16.4
69+
simulator_runtime_version: 18.5
6770

6871
strategy:
6972
matrix:
@@ -100,6 +103,8 @@ jobs:
100103
--apple_deploy_target=15.1 \
101104
--apple_sysroot=iphonesimulator \
102105
--osx_arch=${{ matrix.target_arch }}
106+
env:
107+
ORT_GET_SIMULATOR_DEVICE_INFO_REQUESTED_RUNTIME_VERSION: ${{ env.simulator_runtime_version }}
103108

104109
Objective-C-StaticAnalysis:
105110
runs-on: macos-14

0 commit comments

Comments
 (0)