File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,27 @@ jobs:
13
13
with :
14
14
xcode-version : latest-stable
15
15
16
- - name : Cleanup and Reset Simulators
16
+ - name : Cleanup Simulators
17
17
run : |
18
18
xcrun simctl shutdown all || true
19
19
xcrun simctl erase all || true
20
- rm -rf ~/Library/Developer/CoreSimulator/Devices
20
+ xcrun simctl delete unavailable
21
+ RUNTIME=$(xcrun simctl list runtimes | grep "iOS" | grep -v unavailable | head -n 1 | awk '{print $1}')
22
+ xcrun simctl create "iPhone-14-Pro-Max-CI" "iPhone 14 Pro Max" "$RUNTIME"
21
23
22
- - name : Boot Required Simulator
24
+ - name : Verify Simulators
25
+ run : xcrun simctl list devices
26
+
27
+ - name : Boot Simulator
23
28
run : |
24
- xcrun simctl boot "iPhone 14 Pro Max"
29
+ xcrun simctl boot "iPhone-14- Pro- Max-CI "
25
30
26
31
- name : Build and test with parallel testing
27
32
run : |
28
33
xcodebuild test -project swift-sdk.xcodeproj \
29
34
-scheme swift-sdk \
30
35
-sdk iphonesimulator \
31
- -destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' \
36
+ -destination 'platform=iOS Simulator,name=iPhone-14- Pro- Max-CI ' \
32
37
-enableCodeCoverage YES \
33
38
-parallel-testing-enabled YES \
34
39
-parallel-testing-worker-count 4 \
You can’t perform that action at this time.
0 commit comments