Skip to content

Commit 36d5741

Browse files
committed
WIP
1 parent d8d4bc1 commit 36d5741

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,9 @@ jobs:
2626
- mac-catalyst
2727
- tvOS
2828
swift:
29-
- "6.0"
30-
- "6.1"
31-
- "6.2"
32-
include:
33-
- swift: "6.0"
34-
xcode: "16.2"
35-
- swift: "6.1"
36-
xcode: "16.4"
37-
- swift: "6.2"
38-
xcode: "26.0"
29+
- ~6.0 # Xcode 16.2
30+
- ~6.1 # Xcode 16.4
31+
- ~6.2 # Xcode 26.0
3932
steps:
4033
- name: Git Checkout
4134
uses: actions/checkout@v4
@@ -58,34 +51,13 @@ jobs:
5851
- if: matrix.platform != 'mac-catalyst'
5952
name: Download Required Runtimes
6053
run: |
61-
sudo xcodes select ${{ matrix.xcode }}
62-
RUNTIME="${{ fromJSON(env.SIMULATORS_JSON)[matrix.xcode][matrix.platform].runtime }}"
63-
if ! xcrun simctl list runtimes | grep -q "$RUNTIME"; then
64-
if ! xcodebuild -downloadPlatform ${{ matrix.platform }}; then
65-
code=$?
66-
if [ $code -ne 70 ]; then
67-
exit $code
68-
else
69-
echo "Ignoring exit code 70 from xcodebuild -downloadPlatform"
70-
fi
71-
fi
72-
fi
73-
74-
- if: matrix.platform != 'mac-catalyst'
75-
name: Create Simulator
76-
run: |
77-
sudo xcodes select ${{ matrix.xcode }}
78-
xcrun simctl delete all
79-
xcrun simctl create \
80-
"${{ fromJSON(env.SIMULATORS_JSON)[matrix.xcode][matrix.platform].name }}" \
81-
"${{ fromJSON(env.SIMULATORS_JSON)[matrix.xcode][matrix.platform].type }}" \
82-
"${{ fromJSON(env.SIMULATORS_JSON)[matrix.xcode][matrix.platform].runtime }}"
54+
xcodebuild -downloadPlatform ${{ matrix.platform }}
8355
8456
- name: Test Library
8557
uses: mxcl/xcodebuild@v3
8658
with:
8759
platform: ${{ matrix.platform }}
88-
xcode: ${{ matrix.xcode }}
60+
swift: ${{ matrix.swift }}
8961
action: test
9062
workspace: SwiftUINavigationTransitions.xcworkspace
9163
scheme: SwiftUINavigationTransitions
@@ -94,7 +66,7 @@ jobs:
9466
uses: mxcl/xcodebuild@v3
9567
with:
9668
platform: ${{ matrix.platform }}
97-
xcode: ${{ matrix.xcode }}
69+
swift: ${{ matrix.swift }}
9870
action: build
9971
workspace: SwiftUINavigationTransitions.xcworkspace
10072
scheme: Demo

0 commit comments

Comments
 (0)