File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,17 @@ jobs:
19
19
strategy :
20
20
matrix :
21
21
xcode : ['16.4']
22
- config : ['debug', 'release']
22
+ config :
23
+ - debug
24
+ # - release
23
25
runs-on : macos-15
24
26
steps :
25
27
- uses : actions/checkout@v4
26
28
- name : Select Xcode ${{ matrix.xcode }}
27
29
run : sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
30
+ - name : List available devices
31
+ run : xcrun simctl list devices available
32
+ # NB: GitHub CI only contains newer runtimes
28
33
# - name: Run ${{ matrix.config }} tests
29
34
# run: swift test -c ${{ matrix.config }}
30
35
- name : Run compatibility tests
Original file line number Diff line number Diff line change 1
1
PLATFORM_IOS = iOS Simulator,id=$(call udid_for,iOS 18.5,iPhone \d\+ Pro [^M])
2
2
3
- test-compatibility :
3
+ warm-simulator :
4
+ @test " $( PLATFORM_IOS) " ! = " " \
5
+ && xcrun simctl boot $(PLATFORM_ID ) \
6
+ && open -a Simulator --args -CurrentDeviceUDID $(PLATFORM_IOS ) \
7
+ || exit 0
8
+
9
+ test-compatibility : warm-simulator
4
10
xcodebuild \
5
11
-skipMacroValidation \
6
12
-project Example/Example.xcodeproj \
@@ -14,7 +20,7 @@ format:
14
20
-not -path ' */.*' -print0 \
15
21
| xargs -0 swift format --ignore-unparsable-files --in-place
16
22
17
- .PHONY : format test-compatibility
23
+ .PHONY : format test-compatibility warm-simulator
18
24
19
25
define udid_for
20
26
$(shell xcrun simctl list devices available '$(1 ) ' | grep '$(2 ) ' | sort -r | head -1 | awk -F '[() ]' '{ print $$(NF-3 ) }')
You can’t perform that action at this time.
0 commit comments