Skip to content

Commit b0747ea

Browse files
committed
Use same simulator setup in secondary platform tests
1 parent 714abe9 commit b0747ea

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/build-secondary-platforms.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,21 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v5
2222

23-
- name: Select Xcode
24-
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
23+
- name: Set up Xcode
24+
uses: maxim-lobanov/setup-xcode@v1
25+
with:
26+
xcode-version: ${{ env.XCODE_VERSION }}
27+
28+
- name: Setup specified simulator
29+
uses: futureware-tech/simulator-action@v4
30+
id: simulator
31+
with:
32+
model: iPhone 16 Pro
33+
os: iOS
34+
os_version: '>=18.0'
35+
erase_before_boot: true
36+
wait_for_boot: true
37+
shutdown_after_job: true
2538

2639
- name: Add React Native cli
2740
run: yarn add -D @react-native-community/cli
@@ -33,4 +46,4 @@ jobs:
3346
run: pod install
3447

3548
- name: Build iOS extension scheme
36-
run: xcodebuild -allowProvisioningUpdates -workspace RNExample.xcworkspace -scheme RNExample -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest'
49+
run: xcodebuild -allowProvisioningUpdates -workspace RNExample.xcworkspace -scheme RNExample -destination 'id=${{ steps.simulator.outputs.UDID }}'

0 commit comments

Comments
 (0)