From 96b0f3fb3e4cbc369abcb169a6e9660689a2f6be Mon Sep 17 00:00:00 2001 From: "Pedro H. Santiago" Date: Thu, 5 Nov 2020 17:39:15 -0300 Subject: [PATCH] feat: Add pod cache (#67) * feat: pod cache * Update src/commands/pod_install.yml add @matt-oakes suggestion Co-authored-by: Matt Oakes Co-authored-by: Matt Oakes --- src/commands/pod_install.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commands/pod_install.yml b/src/commands/pod_install.yml index e0a4a62..88a740b 100644 --- a/src/commands/pod_install.yml +++ b/src/commands/pod_install.yml @@ -10,8 +10,16 @@ parameters: default: "ios" description: The location of the "ios" directory steps: + - restore_cache: + keys: + - cache-pods-{{ checksum "<>/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 <> && pod install && cd - + - save_cache: + paths: + - <>/Pods + key: cache-pods-{{ checksum "<>/Podfile.lock" }}-{{ .Environment.CACHE_VERSION }}