Skip to content

Commit 8881519

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 03ef8e1 commit 8881519

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/build.yml

+16-15
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ jobs:
7878
name: linux-hermes
7979
path: output
8080
macos:
81-
runs-on: macos-latest
81+
runs-on: macos-14
8282
steps:
8383
- uses: maxim-lobanov/setup-xcode@v1
8484
with:
85-
xcode-version: 15.4
85+
xcode-version: 16.2
8686
- uses: actions/[email protected]
8787
with:
8888
path: hermes
@@ -110,15 +110,15 @@ jobs:
110110
name: macos-hermes
111111
path: output
112112
build-apple-runtime:
113-
runs-on: macos-latest
113+
runs-on: macos-14
114114
env:
115115
TERM: dumb
116116
HERMES_WS_DIR: "/tmp/hermes"
117117
HOMEBREW_NO_AUTO_UPDATE: 1
118118
steps:
119119
- uses: maxim-lobanov/setup-xcode@v1
120120
with:
121-
xcode-version: 15.4
121+
xcode-version: 16.2
122122
- uses: actions/[email protected]
123123
- name: Cache setup
124124
uses: actions/[email protected]
@@ -141,11 +141,11 @@ 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
145145
steps:
146146
- uses: maxim-lobanov/setup-xcode@v1
147147
with:
148-
xcode-version: 15.4
148+
xcode-version: 16.2
149149
- uses: actions/[email protected]
150150
with:
151151
path: hermes
@@ -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
161161
needs: build-apple-runtime
162162
env:
163163
TERM: dumb
@@ -166,7 +166,7 @@ jobs:
166166
steps:
167167
- uses: maxim-lobanov/setup-xcode@v1
168168
with:
169-
xcode-version: 15.4
169+
xcode-version: 16.2
170170
- uses: actions/[email protected]
171171
- name: Cache setup
172172
uses: actions/[email protected]
@@ -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 newest 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 16' \
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
222223
needs:
223224
- test-macos
224225
- test-apple-runtime
@@ -229,7 +230,7 @@ jobs:
229230
steps:
230231
- uses: maxim-lobanov/setup-xcode@v1
231232
with:
232-
xcode-version: 15.4
233+
xcode-version: 16.2
233234
- uses: actions/[email protected]
234235
- name: Cache setup
235236
uses: actions/[email protected]
@@ -566,11 +567,11 @@ 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
570571
steps:
571572
- uses: maxim-lobanov/setup-xcode@v1
572573
with:
573-
xcode-version: 15.4
574+
xcode-version: 16.2
574575
- uses: actions/[email protected]
575576
with:
576577
path: hermes

0 commit comments

Comments
 (0)