@@ -16,77 +16,34 @@ concurrency:
16
16
cancel-in-progress : true
17
17
18
18
jobs :
19
- xcode- test-ios :
19
+ test :
20
20
timeout-minutes : 15
21
21
runs-on : macos-latest
22
+ strategy :
23
+ matrix :
24
+ destination : ['platform=iOS\ Simulator,name=iPhone\ 14\ Pro\ Max', 'platform\=tvOS\ Simulator,name\=Apple\ TV', 'platform=watchOS\ Simulator,name=Apple\ Watch\ Series\ 5\ \(40mm\)', 'platform=macOS']
25
+ action : ['test', 'build']
26
+ exclude :
27
+ - destination : ' platform=iOS\ Simulator,name=iPhone\ 14\ Pro\ Max'
28
+ action : ' build'
29
+ - destination : ' platform\=tvOS\ Simulator,name\=Apple\ TV'
30
+ action : ' build'
31
+ - destination : ' platform=macOS'
32
+ action : ' build'
33
+ - destination : ' platform=watchOS\ Simulator,name=Apple\ Watch\ Series\ 5\ \(40mm\)'
34
+ action : ' test'
22
35
steps :
23
36
- uses : actions/checkout@v3
24
37
- name : Use multiple cores
25
38
run : defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
26
- - name : Build-Test
27
- run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=iOS\ Simulator,name\=iPhone\ 14\ Pro\ Max -derivedDataPath DerivedData clean test | xcpretty
28
- env :
29
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
30
- - name : Prepare codecov
31
- uses : sersoft-gmbh/swift-coverage-action@v3
32
- id : coverage-files
33
- with :
34
- format : lcov
35
- search-paths : ./DerivedData
36
- env :
37
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
38
- - name : Upload coverage to Codecov
39
- uses : codecov/codecov-action@v3
40
- with :
41
- files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
42
- env_vars : IOS
43
- fail_ci_if_error : true
44
- env :
45
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
46
-
47
- xcode-test-macos :
48
- timeout-minutes : 15
49
- runs-on : macos-latest
50
- steps :
51
- - uses : actions/checkout@v3
52
39
- name : Create and set the default keychain
53
40
run : |
54
41
security create-keychain -p "" temporary
55
42
security default-keychain -s temporary
56
43
security unlock-keychain -p "" temporary
57
44
security set-keychain-settings -lut 7200 temporary
58
- - name : Use multiple cores
59
- run : defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
60
- - name : Build-Test
61
- run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=macOS -derivedDataPath DerivedData clean test | xcpretty
62
- env :
63
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
64
- - name : Prepare codecov
65
- uses : sersoft-gmbh/swift-coverage-action@v3
66
- id : coverage-files
67
- with :
68
- format : lcov
69
- search-paths : ./DerivedData
70
- env :
71
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
72
- - name : Upload coverage to Codecov
73
- uses : codecov/codecov-action@v3
74
- with :
75
- files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
76
- env_vars : MACOS
77
- fail_ci_if_error : true
78
- env :
79
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
80
-
81
- xcode-test-tvos :
82
- timeout-minutes : 15
83
- runs-on : macos-latest
84
- steps :
85
- - uses : actions/checkout@v3
86
- - name : Use multiple cores
87
- run : defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
88
45
- name : Build-Test
89
- run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=tvOS\ Simulator,name\=Apple\ TV -derivedDataPath DerivedData clean test | xcpretty
46
+ run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -derivedDataPath DerivedData -destination ${{ matrix.destination }} ${{ matrix.action }} | xcpretty -c
90
47
env :
91
48
DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
92
49
- name : Prepare codecov
@@ -101,20 +58,7 @@ jobs:
101
58
uses : codecov/codecov-action@v3
102
59
with :
103
60
files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
104
- env_vars : TVOS
105
- fail_ci_if_error : true
106
- env :
107
- DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
108
-
109
- xcode-build-watchos :
110
- timeout-minutes : 10
111
- runs-on : macos-latest
112
- steps :
113
- - uses : actions/checkout@v3
114
- - name : Use multiple cores
115
- run : defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
116
- - name : Build
117
- run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=watchOS\ Simulator,name\=Apple\ Watch\ Series\ 8\ \(45mm\) -derivedDataPath DerivedData clean build | xcpretty
61
+ fail_ci_if_error : false
118
62
env :
119
63
DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
120
64
132
76
- name : Use multiple cores
133
77
run : defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
134
78
- name : Build-Test
135
- run : swift test --enable-code-coverage -v
79
+ run : swift test --enable-code-coverage | xcpretty -c
136
80
env :
137
81
DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
138
82
- name : Prepare codecov
@@ -148,18 +92,18 @@ jobs:
148
92
with :
149
93
files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
150
94
env_vars : SPM
151
- fail_ci_if_error : true
95
+ fail_ci_if_error : false
152
96
env :
153
97
DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
154
98
155
99
xcode-test-5_5 :
156
100
timeout-minutes : 15
157
- needs : xcode-build-watchos
101
+ needs : linux
158
102
runs-on : macos-12
159
103
steps :
160
104
- uses : actions/checkout@v3
161
105
- name : Build-Test
162
- run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=iOS\ Simulator,name\=iPhone\ 13\ Pro\ Max -derivedDataPath DerivedData build | xcpretty
106
+ run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=iOS\ Simulator,name\=iPhone\ 13\ Pro\ Max -derivedDataPath DerivedData build | xcpretty -c
163
107
env :
164
108
DEVELOPER_DIR : ${{ env.CI_XCODE_OLDEST }}
165
109
@@ -191,8 +135,8 @@ jobs:
191
135
- uses : actions/checkout@v3
192
136
-
uses :
compnerd/[email protected]
193
137
with :
194
- branch : swift-5.7.3 -release
195
- tag : 5.7.3 -RELEASE
138
+ branch : swift-5.8 -release
139
+ tag : 5.8 -RELEASE
196
140
- name : Build
197
141
run : |
198
142
swift build -v
@@ -204,7 +148,7 @@ jobs:
204
148
205
149
docs :
206
150
timeout-minutes : 10
207
- needs : xcode-build-watchos
151
+ needs : linux
208
152
runs-on : macos-latest
209
153
steps :
210
154
- uses : actions/checkout@v3
@@ -216,7 +160,7 @@ jobs:
216
160
DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
217
161
218
162
cocoapods :
219
- needs : xcode-build-watchos
163
+ needs : linux
220
164
runs-on : macos-latest
221
165
steps :
222
166
- uses : actions/checkout@v3
@@ -230,4 +174,3 @@ jobs:
230
174
run : pod lib lint --allow-warnings
231
175
env :
232
176
DEVELOPER_DIR : ${{ env.CI_XCODE_LATEST }}
233
-
0 commit comments