Skip to content

Commit 13922ce

Browse files
committed
Split Route
1 parent c15dabe commit 13922ce

1 file changed

Lines changed: 40 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
danger:
55
executor: xcode-14
66
steps:
7-
- setup
7+
- setup-apple-silicon
88
- run:
99
name: Install xchtmlreport
1010
command: |
@@ -57,18 +57,24 @@ jobs:
5757
swift-package:
5858
executor: xcode-14
5959
steps:
60-
- setup
60+
- setup-apple-silicon
6161
- run: swift build
6262
- run: swift test
6363

6464
lint-pod:
6565
executor: xcode-14
6666
steps:
67-
- setup
67+
- setup-apple-silicon
6868
- lint-pod
6969

7070
fastlane-tests:
7171
executor: xcode-14
72+
steps:
73+
- setup-apple-silicon
74+
- run: bundle exec fastlane test_all
75+
76+
fastlane-tests-xcode-12:
77+
executor: xcode-12
7278
steps:
7379
- setup
7480
- run: bundle exec fastlane test_all
@@ -126,14 +132,15 @@ executors:
126132
shell: /bin/bash --login -eo pipefail
127133

128134
commands:
129-
setup:
130-
description: "Shared setup"
135+
136+
setup-apple-silicon:
137+
description: "Shared Apple Silicon setup"
131138
steps:
132139
- checkout
133-
- restore-gems
140+
- restore-gems-apple-silicon
134141

135-
restore-gems:
136-
description: "Restore Ruby Gems"
142+
restore-gems-apple-silicon:
143+
description: "Restore Ruby Gems: Apple Silicon"
137144
steps:
138145
- run:
139146
name: Ruby Setup
@@ -149,6 +156,26 @@ commands:
149156
paths:
150157
- vendor/bundle
151158

159+
setup:
160+
description: "Shared setup"
161+
steps:
162+
- checkout
163+
- restore-gems
164+
165+
restore-gems:
166+
description: "Restore Ruby Gems"
167+
steps:
168+
- run:
169+
name: Set Ruby Version
170+
command: echo "ruby-2.5" > ~/.ruby-version
171+
- restore_cache:
172+
key: 1-gems-{{ checksum "Gemfile.lock" }}
173+
- run: bundle check || bundle install --path vendor/bundle
174+
- save_cache:
175+
key: 1-gems-{{ checksum "Gemfile.lock" }}
176+
paths:
177+
- vendor/bundle
178+
152179
lint-pod:
153180
description: "Lints podspec with specified Swift version"
154181
parameters:
@@ -178,6 +205,10 @@ workflows:
178205
filters:
179206
tags:
180207
only: /.*/
208+
- fastlane-tests-xcode-12:
209+
filters:
210+
tags:
211+
only: /.*/
181212
- lint-pod:
182213
filters:
183214
tags:
@@ -193,6 +224,7 @@ workflows:
193224
- swift-package
194225
- fastlane-tests
195226
- fastlane-tests-xcode-13
227+
- fastlane-tests-xcode-12
196228
- lint-pod
197229
- carthage-build
198230
filters:

0 commit comments

Comments
 (0)