Skip to content

Commit 96b0f3f

Browse files
feat: Add pod cache (react-native-community#67)
* feat: pod cache * Update src/commands/pod_install.yml add @matt-oakes suggestion Co-authored-by: Matt Oakes <[email protected]> Co-authored-by: Matt Oakes <[email protected]>
1 parent ade4b31 commit 96b0f3f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/commands/pod_install.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ parameters:
1010
default: "ios"
1111
description: The location of the "ios" directory
1212
steps:
13+
- restore_cache:
14+
keys:
15+
- cache-pods-{{ checksum "<<parameters.pod_install_directory>>/Podfile.lock" }}-{{ .Environment.CACHE_VERSION }}
16+
- cache-pods-
1317
- run:
1418
name: Install CocoaPods
1519
command: |
1620
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
1721
cd <<parameters.pod_install_directory>> && pod install && cd -
22+
- save_cache:
23+
paths:
24+
- <<parameters.pod_install_directory>>/Pods
25+
key: cache-pods-{{ checksum "<<parameters.pod_install_directory>>/Podfile.lock" }}-{{ .Environment.CACHE_VERSION }}

0 commit comments

Comments
 (0)