Skip to content

Commit 0ede09c

Browse files
committed
Cache pods
1 parent c4a0486 commit 0ede09c

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.circleci/config.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,21 @@ commands:
117117
- ~/Library/Caches/Homebrew
118118
key: v1-brew
119119

120+
with_pods_cache_span:
121+
parameters:
122+
steps:
123+
type: steps
124+
steps:
125+
- restore_cache:
126+
keys:
127+
- v1-pods-{{ checksum "RNTester/Podfile.lock" }}
128+
- v1-pods-
129+
- steps: << parameters.steps >>
130+
- save_cache:
131+
paths:
132+
- RNTester/Pods
133+
key: v1-pods-{{ checksum "RNTester/Podfile.lock" }}
134+
120135
download_gradle_dependencies:
121136
steps:
122137
- restore_cache:
@@ -303,9 +318,11 @@ jobs:
303318
command: |
304319
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
305320
306-
- run:
307-
name: Generate RNTesterPods Workspace
308-
command: cd RNTester && pod install --verbose
321+
- with_pods_cache_span:
322+
steps:
323+
- run:
324+
name: Generate RNTesterPods Workspace
325+
command: cd RNTester && pod install --verbose
309326

310327
- with_brew_cache_span:
311328
steps:

0 commit comments

Comments
 (0)