Skip to content

Commit

Permalink
Upgrade iPhone simulator version used in Github Action (#1595)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #1595

Reviewed By: neildhar

Differential Revision: D68351827

fbshipit-source-id: 15cb043871228649fa5a06373e4cd905d49b1db5
  • Loading branch information
lavenzg authored and facebook-github-bot committed Feb 26, 2025
1 parent 03ef8e1 commit 21da174
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ jobs:
name: linux-hermes
path: output
macos:
runs-on: macos-latest
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
with:
path: hermes
Expand Down Expand Up @@ -110,15 +110,15 @@ jobs:
name: macos-hermes
path: output
build-apple-runtime:
runs-on: macos-latest
runs-on: macos-14
env:
TERM: dumb
HERMES_WS_DIR: "/tmp/hermes"
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
- name: Cache setup
uses: actions/[email protected]
Expand All @@ -141,11 +141,11 @@ jobs:
- name: Build the Mac frameworks
run: "./utils/build-mac-framework.sh"
test-macos:
runs-on: macos-latest
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
with:
path: hermes
Expand All @@ -157,7 +157,7 @@ jobs:
cmake --build ./build
cmake --build ./build --target check-hermes
test-apple-runtime:
runs-on: macos-latest
runs-on: macos-14
needs: build-apple-runtime
env:
TERM: dumb
Expand All @@ -166,7 +166,7 @@ jobs:
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
- name: Cache setup
uses: actions/[email protected]
Expand All @@ -193,12 +193,13 @@ jobs:
working-directory: test/ApplePlatformsIntegrationTestApp
- name: Test iPhone application
run: |-
# Xcode 15 uses iOS 17 for simulator, and only iPhone 14/15 can work by
# default, so use the oldest working model here.
# macos-14 installs simulators for iPhone 15/16, so use the oldest model
# here:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
xcodebuild test \
-workspace ApplePlatformsIntegrationTests.xcworkspace \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 14' \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-scheme ApplePlatformsIntegrationMobileTests
working-directory: test/ApplePlatformsIntegrationTestApp
- name: Test Apple Vision application
Expand All @@ -218,7 +219,7 @@ jobs:
-scheme ApplePlatformsIntegrationTVOSTests
working-directory: test/ApplePlatformsIntegrationTestApp
package-apple-runtime:
runs-on: macos-latest
runs-on: macos-14
needs:
- test-macos
- test-apple-runtime
Expand All @@ -229,7 +230,7 @@ jobs:
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
- name: Cache setup
uses: actions/[email protected]
Expand Down Expand Up @@ -566,11 +567,11 @@ jobs:
emulator-options: -timezone Europe/Paris -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: cd android && ./gradlew :intltest:prepareTests && ./gradlew -Pabis=x86 :intltest:connectedAndroidTest
test-macos-test262:
runs-on: macos-latest
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
with:
path: hermes
Expand Down

0 comments on commit 21da174

Please sign in to comment.