Skip to content

Commit ba5c64e

Browse files
committed
feat: add CocoaPods specs cache to iOS production build
Cache ~/.cocoapods/repos using actions/cache@v4 keyed on ios/Podfile.lock so pod install resolves specs locally on cache hit instead of fetching from CDN. Ref: MCWP-574
1 parent 4863651 commit ba5c64e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,16 @@ jobs:
317317
SECRETS_JSON: ${{ toJSON(secrets) }}
318318
run: node scripts/validate-secrets-from-config.js
319319

320+
- name: Restore CocoaPods specs cache (iOS)
321+
if: matrix.platform == 'ios'
322+
uses: actions/cache@v4
323+
with:
324+
path: ~/.cocoapods/repos
325+
key: ${{ runner.os }}-cocoapods-specs-${{ hashFiles('ios/Podfile.lock') }}
326+
restore-keys: |
327+
${{ runner.os }}-cocoapods-specs-
328+
continue-on-error: true
329+
320330
# iOS: Install Pods here so generated paths match this runner (setup-node-modules skips pod install with --no-install-pods).
321331
- name: Install CocoaPods dependencies (iOS)
322332
if: matrix.platform == 'ios'

0 commit comments

Comments
 (0)