Skip to content

Commit

Permalink
feat: Add pod cache (react-native-community#67)
Browse files Browse the repository at this point in the history
* feat: pod cache

* Update src/commands/pod_install.yml

add @matt-oakes suggestion

Co-authored-by: Matt Oakes <hello@mattoakes.net>

Co-authored-by: Matt Oakes <hello@mattoakes.net>
  • Loading branch information
phsantiago and matt-oakes authored Nov 5, 2020
1 parent ade4b31 commit 96b0f3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/commands/pod_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ parameters:
default: "ios"
description: The location of the "ios" directory
steps:
- restore_cache:
keys:
- cache-pods-{{ checksum "<<parameters.pod_install_directory>>/Podfile.lock" }}-{{ .Environment.CACHE_VERSION }}
- cache-pods-
- run:
name: Install CocoaPods
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
cd <<parameters.pod_install_directory>> && pod install && cd -
- save_cache:
paths:
- <<parameters.pod_install_directory>>/Pods
key: cache-pods-{{ checksum "<<parameters.pod_install_directory>>/Podfile.lock" }}-{{ .Environment.CACHE_VERSION }}

0 comments on commit 96b0f3f

Please sign in to comment.