Skip to content

Commit 8ed9d5f

Browse files
authored
Fix cocoapods caching (#285)
* Fix cocoapods caching * Replace --clean-install with --deployment * If there is a cache miss, then the local podspecs should be updated
1 parent 409b422 commit 8ed9d5f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/actions/install-cocoapods/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ runs:
2222
uses: actions/cache@v4
2323
with:
2424
path: |
25-
**/ios/Pods
25+
sample/ios/Pods
2626
key: ${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock', 'sample/Gemfile.lock', 'package.json', 'sample/package.json', 'modules/@shopify/checkout-sheet-kit/package.json', 'yarn.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock', 'sample/package.json', 'yarn.lock') }}
29-
${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock') }}
30-
${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-
31-
${{ runner.os }}-cocoapods-
3227

3328
- name: Install cocoapods
3429
if: steps.cache-cocoapods.outputs.cache-hit != 'true'
@@ -41,5 +36,5 @@ runs:
4136
cd sample
4237
bundle install
4338
cd ios
44-
NO_FLIPPER=1 bundle exec pod install --no-repo-update
39+
NO_FLIPPER=1 bundle exec pod install --deployment --repo-update
4540
cd $ROOT

0 commit comments

Comments
 (0)