Skip to content

Commit c341aed

Browse files
committed
fix CI/CD
1 parent a182ce0 commit c341aed

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/pre-merge.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
with:
6969
xcode-version: 16.2.0
7070

71+
- name: Get available iOS runtime
72+
id: get-ios-runtime
73+
run: |
74+
AVAILABLE_RUNTIME=$(xcrun simctl list runtimes | grep -o "iOS [0-9]*\.[0-9]*" | sort -V | tail -1)
75+
echo "Available iOS runtime: $AVAILABLE_RUNTIME"
76+
echo "ios_runtime=$AVAILABLE_RUNTIME" >> $GITHUB_OUTPUT
77+
7178
- name: Yarn Install
7279
run: yarn install
7380
working-directory: ReproducerApp
@@ -77,5 +84,8 @@ jobs:
7784
working-directory: ReproducerApp/ios
7885

7986
- name: Yarn Build iOS
80-
run: yarn react-native build-ios
87+
run: |
88+
RUNTIME="${{ steps.get-ios-runtime.outputs.ios_runtime }}"
89+
echo "Building with runtime: $RUNTIME"
90+
yarn react-native build-ios --simulator="iPhone 15 ($RUNTIME)"
8191
working-directory: ReproducerApp

0 commit comments

Comments
 (0)