Skip to content

Commit 31e3f3b

Browse files
lavenzgfacebook-github-bot
authored andcommitted
Upgrade iPhone simulator version used in Github Action (#1595)
Summary: Pull Request resolved: #1595 Differential Revision: D68351827
1 parent 2facf5b commit 31e3f3b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/build.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
name: linux-hermes
7979
path: output
8080
macos:
81-
runs-on: macos-latest
81+
runs-on: macos-14-arm64
8282
steps:
8383
- uses: maxim-lobanov/setup-xcode@v1
8484
with:
@@ -110,7 +110,7 @@ jobs:
110110
name: macos-hermes
111111
path: output
112112
build-apple-runtime:
113-
runs-on: macos-latest
113+
runs-on: macos-14-arm64
114114
env:
115115
TERM: dumb
116116
HERMES_WS_DIR: "/tmp/hermes"
@@ -141,7 +141,7 @@ jobs:
141141
- name: Build the Mac frameworks
142142
run: "./utils/build-mac-framework.sh"
143143
test-macos:
144-
runs-on: macos-latest
144+
runs-on: macos-14-arm64
145145
steps:
146146
- uses: maxim-lobanov/setup-xcode@v1
147147
with:
@@ -157,7 +157,7 @@ jobs:
157157
cmake --build ./build
158158
cmake --build ./build --target check-hermes
159159
test-apple-runtime:
160-
runs-on: macos-latest
160+
runs-on: macos-14-arm64
161161
needs: build-apple-runtime
162162
env:
163163
TERM: dumb
@@ -193,12 +193,13 @@ jobs:
193193
working-directory: test/ApplePlatformsIntegrationTestApp
194194
- name: Test iPhone application
195195
run: |-
196-
# Xcode 15 uses iOS 17 for simulator, and only iPhone 14/15 can work by
197-
# default, so use the oldest working model here.
196+
# macos-14 installs simulators for iPhone 15/16, so use the oldest model
197+
# here:
198+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
198199
xcodebuild test \
199200
-workspace ApplePlatformsIntegrationTests.xcworkspace \
200201
-configuration Debug \
201-
-destination 'platform=iOS Simulator,name=iPhone 14' \
202+
-destination 'platform=iOS Simulator,name=iPhone 15' \
202203
-scheme ApplePlatformsIntegrationMobileTests
203204
working-directory: test/ApplePlatformsIntegrationTestApp
204205
- name: Test Apple Vision application
@@ -218,7 +219,7 @@ jobs:
218219
-scheme ApplePlatformsIntegrationTVOSTests
219220
working-directory: test/ApplePlatformsIntegrationTestApp
220221
package-apple-runtime:
221-
runs-on: macos-latest
222+
runs-on: macos-14-arm64
222223
needs:
223224
- test-macos
224225
- test-apple-runtime
@@ -566,7 +567,7 @@ jobs:
566567
emulator-options: -timezone Europe/Paris -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
567568
script: cd android && ./gradlew :intltest:prepareTests && ./gradlew -Pabis=x86 :intltest:connectedAndroidTest
568569
test-macos-test262:
569-
runs-on: macos-latest
570+
runs-on: macos-14-arm64
570571
steps:
571572
- uses: maxim-lobanov/setup-xcode@v1
572573
with:

0 commit comments

Comments
 (0)