Skip to content

Commit 675e538

Browse files
fix(ci): Change fixed iOS SDK version to OS latest flag (#2770)
* Fix missing DerivedData dir in rn build matrix * Change fixed sdk version to latest os flag
1 parent 14d27a7 commit 675e538

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/e2e.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
platform: ['ios', 'android']
2828
include:
2929
- platform: ios
30-
runtime: '16.0'
30+
runtime: 'latest'
3131
device: 'iPhone 14'
3232
env:
3333
PLATFORM: ${{ matrix.platform }}
@@ -104,9 +104,8 @@ jobs:
104104
mkdir -p DerivedData
105105
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
106106
buildArgs=(
107-
'-destination' 'platform=iOS Simulator,name=${{ matrix.device }}'
107+
'-destination' 'platform=iOS Simulator,OS=${{ matrix.runtime }},name=${{ matrix.device }}'
108108
'ONLY_ACTIVE_ARCH=yes'
109-
'-sdk' 'iphonesimulator${{ matrix.runtime }}'
110109
'-derivedDataPath' $(cd "DerivedData" ; pwd -P)
111110
)
112111
echo "buildArgs = ${buildArgs[@]}"
@@ -179,7 +178,7 @@ jobs:
179178
build-type: ['dev', 'production']
180179
include:
181180
- platform: ios
182-
runtime: '16.0'
181+
runtime: 'latest'
183182
device: 'iPhone 14'
184183
# exclude all rn versions lower than 0.70.0 for new architecture
185184
exclude:
@@ -265,14 +264,14 @@ jobs:
265264
run: |
266265
[[ "${{ matrix.build-type }}" == "production" ]] && CONFIG='Release' || CONFIG='Debug'
267266
echo "Building $CONFIG"
267+
mkdir -p "DerivedData"
268268
derivedData="$(cd "DerivedData" ; pwd -P)"
269-
mkdir -p "$derivedData"
270269
xcodebuild \
271270
-workspace RnDiffApp.xcworkspace \
272271
-configuration "$CONFIG" \
273272
-scheme RnDiffApp \
274-
-destination 'platform=iOS Simulator,name=${{ matrix.device }}' \
273+
-destination 'platform=iOS Simulator,OS=${{ matrix.runtime }},name=${{ matrix.device }}' \
275274
ONLY_ACTIVE_ARCH=yes \
276-
-sdk 'iphonesimulator${{ matrix.runtime }}' \
275+
-sdk 'iphonesimulator' \
277276
-derivedDataPath "$derivedData" \
278277
build

0 commit comments

Comments
 (0)