Skip to content

Commit

Permalink
[C-2393] Cache pods in CI (#3317)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored May 4, 2023
1 parent 22f4d46 commit 03c587d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .circleci/src/commands/@mobile-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ mobile-prepare-ios:
- attach_workspace:
at: ./
- run:
name: update cocoapods
command: sudo gem install cocoapods
name: install cocoapods
command: sudo gem install cocoapods:1.12.0
- run:
name: copy bundle
command: cd packages/mobile && npm run bundle:ios
Expand All @@ -44,9 +44,17 @@ mobile-prepare-ios:
command: |
curl -sL https://sentry.io/get-cli/ | bash
echo export SENTRY_BINARY=/usr/local/bin/sentry-cli >> "$BASH_ENV"
- restore_cache:
key: pods-{{ checksum "packages/mobile/ios/Podfile.lock" }}
- run:
name: install pods
command: cd packages/mobile/ios && pod install
command: |
cd packages/mobile/ios
pod install --deployment
- save_cache:
key: pods-{{ checksum "packages/mobile/ios/Podfile.lock" }}
paths:
- packages/mobile/ios/pods
- run:
name: update bundler
command: gem install bundler:1.17.3
Expand Down

0 comments on commit 03c587d

Please sign in to comment.