Skip to content

Commit af318d7

Browse files
authored
[CI] Use standard macOS runners for iOS app checks
## Summary: Run the iOS app checks in Test All on standard macOS runners, which are free for public repositories. This changes RNTester (SwiftPM Debug/Release and CocoaPods Debug), the SwiftPM new-app checks, and the template-app builds/E2E tests. Existing configurations and flows remain covered. Template E2E uses the same explicitly selected iPhone 17 Pro / iOS 26.2 simulator as RNTester, and the template build verifies that its executable supports arm64. Recent full runs spent 86–105 rounded minutes on large macOS runners, approximately $6.62–$8.09 at list price. ## Changelog: [INTERNAL] [CHANGED] - Run iOS CI app checks on standard macOS runners. ## Test Plan: - Passed: `yarn prettier --check .github/workflows/test-all.yml .github/workflows/test-ios-spm-newapp.yml .github/workflows/e2e-ios-templateapp.yml`. - Passed: `/tmp/react-native-ci-tools/actionlint -shellcheck='' -ignore 'label "[48]-core-ubuntu" is unknown' -ignore 'description is required in metadata' .github/workflows/test-all.yml .github/workflows/test-ios-spm-newapp.yml .github/workflows/e2e-ios-templateapp.yml` (actionlint 1.7.12; only existing custom-label/action-description warnings excluded). - Passed: `git diff --check`. - Passed a local native smoke check: compile an arm64 executable, verify it with `lipo <binary> -verify_arch arm64`, and confirm that verifying a missing x86_64 architecture fails. - Passed: all nine migrated jobs in [Test All run 44519662602](https://github.com/react/react-native/actions/runs/44519662602), including both template build architecture checks and downstream simulator E2E tests. Template flows passed on the first attempt; no template workflow retries ran. - Standard-runner durations versus the median of nine recent large-runner runs, in minutes: RNTester SwiftPM Debug 7.32/7.52, Release 6.62/8.17, CocoaPods Debug 5.45/8.58; new app Debug 8.47/10.82, Release 6.40/6.82; template build Debug 7.55/8.67, Release 4.85/8.38; template E2E Debug 11.03/16.87, Release 8.03/11.77. Cache conditions and commits differ; this does not establish long-term p95 or reliability. - Full CI is blocked by Ubuntu package-download timeouts in the unchanged Fantom and ReactCommon C++ setup jobs. These failures occur before compilation. The same failures affect the stacked PR; successful CI reruns are still needed before merge. Differential Revision: D133208470 Pull Request resolved: #60142
1 parent d7f4f75 commit af318d7

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎.github/workflows/e2e-ios-templateapp.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
jobs:
1919
build:
20-
runs-on: macos-26-large
20+
runs-on: macos-26
2121
outputs:
2222
failure-debug: ${{ steps.report-status.outputs.failure-debug }}
2323
failure-release: ${{ steps.report-status.outputs.failure-release }}
@@ -74,6 +74,8 @@ jobs:
7474
-sdk "iphonesimulator" \
7575
-destination "generic/platform=iOS Simulator" \
7676
-derivedDataPath "/tmp/RNTestProject"
77+
- name: Verify app supports the arm64 simulator
78+
run: lipo /tmp/RNTestProject/Build/Products/${{ matrix.flavor }}-iphonesimulator/RNTestProject.app/RNTestProject -verify_arch arm64
7779
- name: Upload app
7880
uses: ./.github/actions/upload-artifact
7981
with:
@@ -100,7 +102,8 @@ jobs:
100102
101103
test:
102104
needs: build
103-
runs-on: macos-26-large
105+
# Standard arm64 runner: run the simulator natively, as RNTester does.
106+
runs-on: macos-26
104107
outputs:
105108
status: ${{ steps.report-status.outputs.status }}
106109
failure-debug: ${{ steps.report-status.outputs.failure-debug }}
@@ -160,6 +163,8 @@ jobs:
160163
maestro-flow: ./scripts/e2e/.maestro/
161164
flavor: ${{ matrix.flavor }}
162165
working-directory: /tmp/RNTestProject
166+
device-model: iPhone-17-Pro
167+
device-os: iOS-26-2
163168
- name: Report status
164169
id: report-status
165170
if: always()

‎.github/workflows/test-all.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
needs: [prebuild_apple_dependencies]
9292

9393
test_ios_rntester:
94-
runs-on: macos-15-large
94+
runs-on: macos-15
9595
needs: [prebuild_apple_dependencies, prebuild_react_native_core]
9696
if: ${{ needs.prebuild_react_native_core.result == 'success' }}
9797
strategy:
@@ -108,7 +108,7 @@ jobs:
108108

109109
# The CocoaPods opt-out stays supported, so CI keeps one CocoaPods build per test app.
110110
test_ios_rntester_cocoapods:
111-
runs-on: macos-15-large
111+
runs-on: macos-15
112112
needs: [prebuild_apple_dependencies, prebuild_react_native_core]
113113
if: ${{ needs.prebuild_react_native_core.result == 'success' }}
114114
steps:

‎.github/workflows/test-ios-spm-newapp.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: macos-15-large
11+
runs-on: macos-15
1212
strategy:
1313
fail-fast: false
1414
matrix:

0 commit comments

Comments
 (0)