feat: add CocoaPods specs cache to iOS production build#29798
Conversation
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
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Pull request overview
This PR speeds up iOS production CI builds by restoring a cached CocoaPods specs repository before running pod install, avoiding repeated full specs downloads from the CDN on every run.
Changes:
- Add an
actions/cache@v4step in the iOS path of.github/workflows/build.ymlto cache~/.cocoapods/repos. - Key the cache on
ios/Podfile.lock(with a restore prefix) and make cache failures non-blocking viacontinue-on-error: true.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: While workflow changes can affect the CI pipeline (build, test execution, caching, artifacts), they do not introduce runtime behavior changes in the mobile app. Functional E2E coverage is not required to validate feature behavior. Pipeline validation will occur naturally when CI runs the configured jobs. Given the absence of app-level changes, no Detox E2E feature tags are required for risk mitigation. Performance Test Selection: |
|



Description
The iOS production build in
build.ymlrunspod installwithout caching~/.cocoapods/repos(the CocoaPods specs repository). Every run downloads the full specs catalog from CDN, taking ~1m 36s.This PR adds an
actions/cache@v4step beforepod installthat caches~/.cocoapods/reposkeyed onios/Podfile.lock. On cache hit,pod installresolves specs locally instead of fetching from CDN. Usescontinue-on-error: trueso cache failures never block the build.This matches the existing pattern in
.github/actions/setup-e2e-env/action.yml(lines 382-391).Changelog
CHANGELOG entry: null
Related issues
Fixes: MCWP-574
Manual testing steps
Screenshots/Recordings
N/A - CI workflow change only, no UI impact.
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist