File tree Expand file tree Collapse file tree 1 file changed +6
-22
lines changed
Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -10,29 +10,13 @@ jobs:
1010 build :
1111
1212 runs-on : macos-latest
13-
13+ strategy :
14+ matrix :
15+ destination : ['platform=iOS Simulator,OS=26.1,name=iPhone 17 Pro']
16+
1417 steps :
1518 - uses : actions/checkout@v4
16-
17- - name : Get latest available iOS simulator destination
18- id : simulator
19- run : |
20- LINE=$(xcrun simctl list devices available |
21- grep -E 'iPhone|iPad' |
22- grep -v "unavailable" |
23- grep -v "Shutdown" |
24- sort -t'(' -k2 -r |
25- head -1)
26-
27- DEVICE_NAME=$(echo "$LINE" | sed -E 's/ *\([0-9]+\.[0-9]+\).*//')
28- OS_VERSION=$(echo "$LINE" | sed -E 's/.*\(([0-9]+\.[0-9]+)\).*/\1/')
29-
30- DEST="platform=iOS Simulator,OS=$OS_VERSION,name=$DEVICE_NAME"
31- echo "DESTINATION=$DEST" >> $GITHUB_ENV
32- echo "Selected destination: $DEST"
33-
3419 - name : Build
35- run : xcodebuild build-for-testing -scheme "SwiftComponents-Package" -destination "$DESTINATION"
36-
20+ run : xcodebuild build-for-testing -scheme "SwiftComponents-Package" -destination "${{ matrix.destination }}"
3721 - name : Run tests
38- run : xcodebuild test -scheme "SwiftComponents-Package" -destination "$DESTINATION "
22+ run : xcodebuild test -scheme "SwiftComponents-Package" -destination "${{ matrix.destination }} "
You can’t perform that action at this time.
0 commit comments