-
Notifications
You must be signed in to change notification settings - Fork 67
265 lines (262 loc) · 9.84 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
name: "CDMarkdownKit CI"
on:
push:
branches:
- master
paths:
- ".github/workflows/**"
- "Package.swift"
- "Source/**"
pull_request:
paths:
- ".github/workflows/**"
- "Package.swift"
- "Source/**"
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
Latest:
name: Test Latest (iOS, macOS, tvOS, watchOS)
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: "iOS"
destination: "OS=16.1,name=iPhone 14 Pro"
- name: "macOS"
destination: "platform=macOS"
- name: "tvOS"
destination: "OS=16.1,name=Apple TV"
- name: "watchOS"
destination: "OS=9.1,name=Apple Watch Series 8 (45mm)"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }} - Debug
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit ${{ matrix.name }}" -destination "${{ matrix.destination }}" -configuration Debug clean build | xcpretty
- name: ${{ matrix.name }} - Release
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit ${{ matrix.name }}" -destination "${{ matrix.destination }}" -configuration Release clean build | xcpretty
Catalyst:
name: Test Catalyst
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer"
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Catalyst - Debug
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit iOS" -destination "platform=macOS" -configuration Debug clean build | xcpretty
- name: Catalyst - Release
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit iOS" -destination "platform=macOS" -configuration Release clean build | xcpretty
iOS:
name: Test iOS
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- runsOn: macOS-12
xcode: "Xcode_13.4.1.app"
name: "iOS 15.5"
destination: "OS=15.5,name=iPhone 13 Pro"
- runsOn: macOS-11
xcode: "Xcode_12.5.1.app"
name: "iOS 14.5"
destination: "OS=14.5,name=iPhone 12 Pro"
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: ${{ matrix.name }} - Debug
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit iOS" -destination "${{ matrix.destination }}" -configuration Debug clean build | xcpretty
- name: ${{ matrix.name }} - Release
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit iOS" -destination "${{ matrix.destination }}" -configuration Release clean build | xcpretty
- name: Pod Lib Lint
run: |
gem install cocoapods --no-document --quiet
pod lib lint --allow-warnings --use-libraries
macOS:
name: Test macOS
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- runsOn: macOS-12
xcode: "Xcode_14.1.app"
name: "macOS 12, Xcode 14.1, Swift 5.7.1"
- runsOn: macOS-12
xcode: "Xcode_14.0.1.app"
name: "macOS 12, Xcode 14.0.1, Swift 5.7.0"
- runsOn: macOS-12
xcode: "Xcode_13.4.1.app"
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1"
- runsOn: macOS-12
xcode: "Xcode_13.3.1.app"
name: "macOS 12, Xcode 13.3.1, Swift 5.6.0"
- runsOn: macOS-11
xcode: "Xcode_13.2.1.app"
name: "macOS 11, Xcode 13.2.1, Swift 5.5.2"
- runsOn: macOS-11
xcode: "Xcode_13.1.app"
name: "macOS 11, Xcode 13.1, Swift 5.5.1"
- runsOn: macOS-11
xcode: "Xcode_13.0.app"
name: "macOS 11, Xcode 13.0, Swift 5.5.0"
- runsOn: macOS-11
xcode: "Xcode_12.5.1.app"
name: "macOS 11, Xcode 12.5.1, Swift 5.4.2"
- runsOn: macOS-10.15
xcode: "Xcode_12.4.app"
name: "macOS 10.15, Xcode 12.4, Swift 5.3.2"
- runsOn: macOS-10.15
xcode: "Xcode_12.3.app"
name: "macOS 10.15, Xcode 12.3, Swift 5.3.2"
- runsOn: macOS-10.15
xcode: "Xcode_12.2.app"
name: "macOS 10.15, Xcode 12.2, Swift 5.3.1"
- runsOn: macOS-10.15
xcode: "Xcode_12.1.1.app"
name: "macOS 10.15, Xcode 12.1.1, Swift 5.3.0"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }} - Debug
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit macOS" -destination "platform=macOS" -configuration Debug clean build | xcpretty
- name: ${{ matrix.name }} - Release
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit macOS" -destination "platform=macOS" -configuration Release clean build | xcpretty
tvOS:
name: Test tvOS
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- runsOn: macOS-12
xcode: "Xcode_13.4.1.app"
name: "tvOS 15.4"
destination: "OS=15.4,name=Apple TV"
- runsOn: macOS-11
xcode: "Xcode_12.5.1.app"
name: "tvOS 14.5"
destination: "OS=14.5,name=Apple TV"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }} - Debug
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit tvOS" -destination "${{ matrix.destination }}" -configuration Debug clean build | xcpretty
- name: ${{ matrix.name }} - Release
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit tvOS" -destination "${{ matrix.destination }}" -configuration Release clean build | xcpretty
watchOS:
name: Test watchOS
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- runsOn: macOS-12
xcode: "Xcode_13.4.1.app"
name: "watchOS 8.5"
destination: "OS=8.5,name=Apple Watch Series 7 - 41mm"
- runsOn: macOS-11
xcode: "Xcode_12.5.1.app"
name: "watchOS 7.4"
destination: "OS=7.4,name=Apple Watch Series 6 - 44mm"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }} - Debug
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit watchOS" -destination "${{ matrix.destination }}" -configuration Debug clean build | xcpretty
- name: ${{ matrix.name }} - Release
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild -project "CDMarkdownKit.xcodeproj" -scheme "CDMarkdownKit watchOS" -destination "${{ matrix.destination }}" -configuration Release clean build | xcpretty
SPM:
name: Test with SPM
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.7.1 Build"
- xcode: "Xcode_14.0.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.7.0 Build"
- xcode: "Xcode_13.4.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.6.1 Build"
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.6.0 Build"
- xcode: "Xcode_13.2.1.app"
runsOn: macOS-11
name: "macOS 11, SPM 5.5.2 Build"
- xcode: "Xcode_13.1.app"
runsOn: macOS-11
name: "macOS 11, SPM 5.5.1 Build"
- xcode: "Xcode_13.0.app"
runsOn: macOS-11
name: "macOS 11, SPM 5.5 Test"
- xcode: "Xcode_12.5.1.app"
runsOn: macOS-11
name: "macOS 11, SPM 5.4.2 Build"
- xcode: "Xcode_12.4.app"
runsOn: macOS-10.15
name: "macOS 10.15, SPM 5.3.2 Build"
- xcode: "Xcode_12.3.app"
runsOn: macOS-10.15
name: "macOS 10.15, SPM 5.3.2 Build"
- xcode: "Xcode_12.2.app"
runsOn: macOS-10.15
name: "macOS 10.15, SPM 5.3.1 Build"
- xcode: "Xcode_12.1.app"
runsOn: macOS-10.15
name: "macOS 10.15, SPM 5.3.0 Build"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: swift build -c debug