Skip to content

Commit c348a9c

Browse files
committed
feat: pod cache
1 parent ade4b31 commit c348a9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/commands/pod_install.yml

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

0 commit comments

Comments
 (0)