11
11
12
12
jobs :
13
13
build :
14
- runs-on : ${{ matrix.runsOn }}
14
+ runs-on : ${{ matrix.runs-on }}
15
15
env :
16
16
DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
20
include :
21
21
- swift : " 5.9"
22
- xcode : " 15.0.1 "
23
- runsOn : macos-13
22
+ xcode : " 15.2 "
23
+ runs-on : macos-13
24
24
- swift : " 5.8"
25
25
xcode : " 14.3.1"
26
- runsOn : macos-13
26
+ runs-on : macos-13
27
27
- swift : " 5.7"
28
28
xcode : " 14.1"
29
- runsOn : macos-12
29
+ runs-on : macos-12
30
30
- swift : " 5.6"
31
31
xcode : " 13.4.1"
32
- runsOn : macos-12
32
+ runs-on : macos-12
33
33
- swift : " 5.5"
34
34
xcode : " 13.2.1"
35
- runsOn : macos-11
35
+ runs-on : macos-12
36
36
- swift : " 5.4"
37
37
xcode : " 12.5.1"
38
- runsOn : macos-11
38
+ runs-on : macos-11
39
39
- swift : " 5.3"
40
40
xcode : " 12.4"
41
- runsOn : macos-11
41
+ runs-on : macos-11
42
42
- swift : " 5.2"
43
43
xcode : " 11.7"
44
- runsOn : macos-11
44
+ runs-on : macos-11
45
45
steps :
46
46
- uses : actions/checkout@v3
47
47
- name : Building in Swift ${{ matrix.swift }}
48
48
run : xcodebuild -scheme FloatingPanel SWIFT_VERSION=${{ matrix.swift }} clean build
49
49
50
50
test :
51
- runs-on : ${{ matrix.runsOn }}
51
+ runs-on : ${{ matrix.runs-on }}
52
52
env :
53
53
DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
54
54
strategy :
55
55
fail-fast : false
56
56
matrix :
57
57
include :
58
- - os : " 17.0.1 "
59
- xcode : " 15.0.1 "
58
+ - os : " 17.2 "
59
+ xcode : " 15.2 "
60
60
sim : " iPhone 15 Pro"
61
61
parallel : NO # Stop random test job failures
62
- runsOn : macos-13
62
+ runs-on : macos-13
63
63
- os : " 16.4"
64
64
xcode : " 14.3.1"
65
65
sim : " iPhone 14 Pro"
66
66
parallel : NO # Stop random test job failures
67
- runsOn : macos-13
67
+ runs-on : macos-13
68
68
- os : " 15.5"
69
69
xcode : " 13.4.1"
70
70
sim : " iPhone 13 Pro"
71
71
parallel : NO # Stop random test job failures
72
- runsOn : macos-12
72
+ runs-on : macos-12
73
73
steps :
74
74
- uses : actions/checkout@v3
75
75
- name : Testing in iOS ${{ matrix.os }}
76
- run : xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=${{ matrix.os }},name=${{ matrix.sim }}' -parallel-testing-enabled '${{ matrix.parallel }}'
76
+ run : |
77
+ xcodebuild clean test \
78
+ -workspace FloatingPanel.xcworkspace \
79
+ -scheme FloatingPanel \
80
+ -destination 'platform=iOS Simulator,OS=${{ matrix.os }},name=${{ matrix.sim }}' \
81
+ -parallel-testing-enabled '${{ matrix.parallel }}'
77
82
timeout-minutes : 20
78
83
79
84
example :
80
- runs-on : macos-12
85
+ runs-on : macos-13
81
86
env :
82
- DEVELOPER_DIR : /Applications/Xcode_14.1 .app/Contents/Developer
87
+ DEVELOPER_DIR : /Applications/Xcode_15.2 .app/Contents/Developer
83
88
strategy :
84
89
fail-fast : false
85
90
matrix :
@@ -91,26 +96,67 @@ jobs:
91
96
steps :
92
97
- uses : actions/checkout@v3
93
98
- name : Building ${{ matrix.example }}
94
- run : xcodebuild -workspace FloatingPanel.xcworkspace -scheme ${{ matrix.example }} -sdk iphonesimulator clean build
99
+ run : |
100
+ xcodebuild clean build \
101
+ -workspace FloatingPanel.xcworkspace \
102
+ -scheme ${{ matrix.example }} \
103
+ -sdk iphonesimulator
95
104
96
105
swiftpm :
97
- runs-on : macos-12
106
+ runs-on : macos-13
98
107
env :
99
- DEVELOPER_DIR : /Applications/Xcode_14.1 .app/Contents/Developer
108
+ DEVELOPER_DIR : /Applications/Xcode_15.2 .app/Contents/Developer
100
109
strategy :
101
110
fail-fast : false
102
111
matrix :
112
+ platform : [iphoneos, iphonesimulator]
113
+ arch : [x86_64, arm64]
114
+ exclude :
115
+ - platform : iphoneos
116
+ arch : x86_64
103
117
include :
118
+ # 17.2
119
+ - platform : iphoneos
120
+ sys : " ios17.2"
121
+ - platform : iphonesimulator
122
+ sys : " ios17.2-simulator"
123
+ steps :
124
+ - uses : actions/checkout@v3
125
+ - name : " Swift Package Manager build"
126
+ run : |
127
+ xcrun swift build \
128
+ --sdk "$(xcrun --sdk ${{ matrix.platform }} --show-sdk-path)" \
129
+ -Xswiftc "-target" -Xswiftc "${{ matrix.arch }}-apple-${{ matrix.sys }}"
130
+
131
+ swiftpm_old :
132
+ runs-on : ${{ matrix.runs-on }}
133
+ env :
134
+ DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
135
+ strategy :
136
+ fail-fast : false
137
+ matrix :
138
+ include :
139
+ # 16.4
140
+ - target : " x86_64-apple-ios16.4-simulator"
141
+ xcode : " 14.3.1"
142
+ runs-on : macos-13
143
+ - target : " arm64-apple-ios16.4-simulator"
144
+ xcode : " 14.3.1"
145
+ runs-on : macos-13
104
146
# 15.7
105
147
- target : " x86_64-apple-ios15.7-simulator"
148
+ xcode : " 14.1"
149
+ runs-on : macos-12
106
150
- target : " arm64-apple-ios15.7-simulator"
107
- # 16.1
108
- - target : " x86_64-apple-ios16.1-simulator"
109
- - target : " arm64-apple-ios16.1-simulator"
151
+ xcode : " 14.1"
152
+ runs-on : macos-12
110
153
steps :
111
154
- uses : actions/checkout@v3
112
155
- name : " Swift Package Manager build"
113
- run : swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "${{ matrix.target }}"
156
+ run : |
157
+ swift build \
158
+ -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" \
159
+ -Xswiftc "-target" -Xswiftc "${{ matrix.target }}"
114
160
115
161
carthage :
116
162
runs-on : macos-11
@@ -120,7 +166,9 @@ jobs:
120
166
run : carthage build --use-xcframeworks --no-skip-current
121
167
122
168
cocoapods :
123
- runs-on : macos-12
169
+ runs-on : macos-13
170
+ env :
171
+ DEVELOPER_DIR : /Applications/Xcode_15.2.app/Contents/Developer
124
172
steps :
125
173
- uses : actions/checkout@v3
126
174
- name : " CocoaPods: pod lib lint"
0 commit comments