1111
1212env :
1313 DEVELOPER_DIR : /Applications/Xcode_16.1.app
14+ IOS_SIMULATOR : ' "platform=iOS Simulator,name=iPhone 16 Pro"'
15+ IOS_SIMULATOR_XCODE_15 : ' "platform=iOS Simulator,name=iPhone 15 Pro"'
16+ MACOS : ' "platform=macOS"'
17+ TVOS_SIMULATOR : ' "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)"'
18+ WATCHOS_SIMULATOR : ' "platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)"'
1419
1520jobs :
1621 test :
1722 name : Test
1823 runs-on : macos-14
19- strategy :
20- matrix :
21- xcode_version :
22- - 15.4
23- - 16.1
24- platform :
25- - ios
26- - macos
27- - tvos
28- - watchos
24+ steps :
25+ - uses : actions/checkout@v4
26+ - name : Test library iOS
27+ run : scripts/test.sh library -destinations ${{ env.IOS_SIMULATOR }}
28+ - name : Test library macOS
29+ run : scripts/test.sh library -destinations ${{ env.MACOS }}
30+ - name : Test library tvOS
31+ run : scripts/test.sh library -destinations ${{ env.TVOS_SIMULATOR }}
32+ - name : Test library watchOS
33+ run : scripts/test.sh library -destinations ${{ env.WATCHOS_SIMULATOR }}
34+
35+ test_with_xcode_15 :
36+ name : Test with Xcode 15
37+ runs-on : macos-14
2938 env :
30- DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode_version }} .app
39+ DEVELOPER_DIR : /Applications/Xcode_15.4 .app
3140 steps :
3241 - uses : actions/checkout@v4
33- - name : Test library
34- run : scripts/test.sh library ${{ matrix.platform }}
42+ - name : Test library iOS
43+ run : scripts/test.sh library -destinations ${{ env.IOS_SIMULATOR_XCODE_15 }}
44+ - name : Test library macOS
45+ run : scripts/test.sh library -destinations ${{ env.MACOS }}
46+ - name : Test library tvOS
47+ run : scripts/test.sh library -destinations ${{ env.TVOS_SIMULATOR }}
48+ - name : Test library watchOS
49+ run : scripts/test.sh library -destinations ${{ env.WATCHOS_SIMULATOR }}
3550
3651 test_examples :
3752 name : Test examples
3853 runs-on : macos-14
3954 steps :
4055 - uses : actions/checkout@v4
4156 - name : Test example iOS
42- run : scripts/test.sh example-ios ios
43- - name : Test example macOS
44- run : scripts/test.sh example-cross-platform macos
45- - name : Test example tvOS
46- run : scripts/test.sh example-cross-platform tvos
57+ run : scripts/test.sh example-ios -destinations ${{ env.IOS_SIMULATOR }}
58+ - name : Test example cross platform
59+ run : |
60+ scripts/test.sh example-cross-platform -destinations \
61+ ${{ env.MACOS }} \
62+ ${{ env.TVOS_SIMULATOR }}
4763
4864 test_upcoming_features :
4965 name : Test upcoming features with Xcode 15
5369 steps :
5470 - uses : actions/checkout@v4
5571 - name : Test upcoming features
56- run : ENABLE_UPCOMING_FEATURES=1 scripts/test.sh library ios
72+ run : ENABLE_UPCOMING_FEATURES=1 scripts/test.sh library -destinations ${{ env.IOS_SIMULATOR_XCODE_15 }}
5773
5874 test_language_mode :
5975 name : Test Swift 5 language mode
@@ -66,15 +82,15 @@ jobs:
6682 steps :
6783 - uses : actions/checkout@v4
6884 - name : Test Swift 5 language mode
69- run : ENABLE_UPCOMING_FEATURES=${{ matrix.enable_upcoming_features }} scripts/test.sh library ios SWIFT_VERSION=5
85+ run : ENABLE_UPCOMING_FEATURES=${{ matrix.enable_upcoming_features }} scripts/test.sh library SWIFT_VERSION=5 -destinations ${{ env.IOS_SIMULATOR }}
7086
7187 benchmark :
7288 name : Benchmark
7389 runs-on : macos-14
7490 steps :
7591 - uses : actions/checkout@v4
7692 - name : Run benchmark test
77- run : scripts/test.sh benchmark ios
93+ run : scripts/test.sh benchmark -destinations ${{ env.IOS_SIMULATOR }}
7894
7995 validation :
8096 name : Validation
0 commit comments