File tree 3 files changed +50
-2
lines changed
3 files changed +50
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ xcode-build :
11
+ name : Xcode Build
12
+ runs-on : macOS-latest
13
+ strategy :
14
+ matrix :
15
+ platform : ['iOS_13']
16
+ fail-fast : false
17
+ steps :
18
+ - name : Checkout Repo
19
+ uses : actions/checkout@v2
20
+ - name : Bundle Install
21
+ run : bundle install --gemfile=Example/Gemfile
22
+ - name : Select Xcode Version
23
+ run : sudo xcode-select --switch /Applications/Xcode_11.3.1.app/Contents/Developer
24
+ - name : Pod Install
25
+ run : bundle exec --gemfile=Example/Gemfile pod install --project-directory=Example
26
+ - name : Build and Test
27
+ run : Scripts/build.swift xcode ${{ matrix.platform }} `which xcpretty`
28
+ - name : Upload Results
29
+ uses : actions/upload-artifact@v2
30
+ if : failure()
31
+ with :
32
+ name : Test Results
33
+ path : .build/derivedData/**/Logs/Test/*.xcresult
34
+ pod-lint :
35
+ name : Pod Lint
36
+ runs-on : macOS-latest
37
+ steps :
38
+ - name : Checkout Repo
39
+ uses : actions/checkout@v2
40
+ - name : Bundle Install
41
+ run : bundle install --gemfile=Example/Gemfile
42
+ - name : Pod Install
43
+ run : bundle exec --gemfile=Example/Gemfile pod install --project-directory=Example
44
+ - name : Lint Podspec
45
+ run : bundle exec --gemfile=Example/Gemfile pod lib lint --verbose --fail-fast
Original file line number Diff line number Diff line change 1
1
language : objective-c
2
2
jobs :
3
- - osx_image : xcode11.3
4
- env : ACTIONS="xcode,pod-lint";PLATFORM="iOS_13"
5
3
- osx_image : xcode10.3
6
4
env : ACTIONS="xcode";PLATFORM="iOS_12"
7
5
- osx_image : xcode10.3
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ enum Platform: String, CustomStringConvertible {
61
61
}
62
62
}
63
63
64
+ var derivedDataPath : String {
65
+ return " .build/derivedData/ \( rawValue) "
66
+ }
67
+
64
68
var description : String {
65
69
return rawValue
66
70
}
@@ -136,6 +140,7 @@ xcodeBuildArguments.append(
136
140
" -sdk " , " iphonesimulator " ,
137
141
" -PBXBuildsContinueAfterErrors=0 " ,
138
142
" -destination " , platform. destination,
143
+ " -derivedDataPath " , platform. derivedDataPath,
139
144
" ONLY_ACTIVE_ARCH=NO " ,
140
145
]
141
146
)
You can’t perform that action at this time.
0 commit comments