Skip to content

Commit 6a354c2

Browse files
committed
[MOB-10368] Reorganize some files
1 parent 6c79323 commit 6a354c2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build-and-test.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: macos-13
88

99
steps:
10-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
10+
- uses: actions/checkout@v4
1111

12-
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
12+
- uses: maxim-lobanov/setup-xcode@v1
1313
with:
1414
xcode-version: latest-stable
1515

@@ -18,16 +18,20 @@ jobs:
1818
xcrun simctl shutdown all || true
1919
xcrun simctl erase all || true
2020
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
2229
xcrun simctl create "iPhone-14-Pro-Max-CI" "iPhone 14 Pro Max" "$RUNTIME"
30+
xcrun simctl boot "iPhone-14-Pro-Max-CI"
2331
2432
- name: Verify Simulators
2533
run: xcrun simctl list devices
2634

27-
- name: Boot Simulator
28-
run: |
29-
xcrun simctl boot "iPhone-14-Pro-Max-CI"
30-
3135
- name: Build and test with parallel testing
3236
run: |
3337
xcodebuild test -project swift-sdk.xcodeproj \

0 commit comments

Comments
 (0)