File tree Expand file tree Collapse file tree 3 files changed +50
-2
lines changed
Expand file tree Collapse file tree 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 11language : objective-c
22jobs :
3- - osx_image : xcode11.3
4- env : ACTIONS="xcode,pod-lint";PLATFORM="iOS_13"
53 - osx_image : xcode10.3
64 env : ACTIONS="xcode";PLATFORM="iOS_12"
75 - osx_image : xcode10.3
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ enum Platform: String, CustomStringConvertible {
6161 }
6262 }
6363
64+ var derivedDataPath : String {
65+ return " .build/derivedData/ \( rawValue) "
66+ }
67+
6468 var description : String {
6569 return rawValue
6670 }
@@ -136,6 +140,7 @@ xcodeBuildArguments.append(
136140 " -sdk " , " iphonesimulator " ,
137141 " -PBXBuildsContinueAfterErrors=0 " ,
138142 " -destination " , platform. destination,
143+ " -derivedDataPath " , platform. derivedDataPath,
139144 " ONLY_ACTIVE_ARCH=NO " ,
140145 ]
141146)
You can’t perform that action at this time.
0 commit comments