File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : macos-13
8
8
9
9
steps :
10
- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
10
+ - uses : actions/checkout@v4
11
11
12
- - uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
12
+ - uses : maxim-lobanov/setup-xcode@v1
13
13
with :
14
14
xcode-version : latest-stable
15
15
@@ -18,16 +18,20 @@ jobs:
18
18
xcrun simctl shutdown all || true
19
19
xcrun simctl erase all || true
20
20
xcrun simctl delete unavailable
21
- RUNTIME=$(xcrun simctl list runtimes | grep "iOS" | grep -v unavailable | head -n 1 | awk '{print $1}')
21
+
22
+ - name : Create and Boot Simulator
23
+ run : |
24
+ RUNTIME=$(xcrun simctl list runtimes | grep "iOS-17-0" | awk '{print $NF}')
25
+ if [ -z "$RUNTIME" ]; then
26
+ echo "Error: Required iOS runtime not found!" >&2
27
+ exit 1
28
+ fi
22
29
xcrun simctl create "iPhone-14-Pro-Max-CI" "iPhone 14 Pro Max" "$RUNTIME"
30
+ xcrun simctl boot "iPhone-14-Pro-Max-CI"
23
31
24
32
- name : Verify Simulators
25
33
run : xcrun simctl list devices
26
34
27
- - name : Boot Simulator
28
- run : |
29
- xcrun simctl boot "iPhone-14-Pro-Max-CI"
30
-
31
35
- name : Build and test with parallel testing
32
36
run : |
33
37
xcodebuild test -project swift-sdk.xcodeproj \
You can’t perform that action at this time.
0 commit comments