🚀 Optimize EAS build times with caching and reduced architectures#24
🚀 Optimize EAS build times with caching and reduced architectures#24williamchong merged 1 commit intolikecoin:mainfrom
Conversation
Enable ccache for iOS, limit Android to arm64-v8a, and add EAS build cache keys to speed up warm builds.
There was a problem hiding this comment.
Pull request overview
This PR aims to speed up EAS warm builds by enabling additional caching and reducing build work (Android ABI narrowing, iOS compilation caching) in this Expo-managed app.
Changes:
- Added an explicit EAS build cache key to all build profiles (development/preview/production).
- Enabled iOS
ccacheviaexpo-build-properties. - Limited Android build architectures to
arm64-v8aviaexpo-build-properties.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eas.json | Adds cache.key to each EAS build profile to influence warm-build caching behavior. |
| app.json | Updates expo-build-properties to enable iOS ccache and restrict Android ABIs to arm64. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "ccacheEnabled": true | ||
| }, | ||
| "android": { | ||
| "buildArchs": ["arm64-v8a"] |
There was a problem hiding this comment.
Setting Android to build only arm64-v8a can break local development on the default Android emulator (commonly x86_64), and can also drop support for 32-bit/other ABIs if you intend to distribute broadly. If the intent is only to speed up EAS production builds, consider scoping the ABI restriction to the relevant EAS build profiles (or keeping x86_64 for debug/dev) rather than applying it globally in app.json.
| "buildArchs": ["arm64-v8a"] | |
| "buildArchs": ["arm64-v8a", "x86_64"] |
Enable ccache for iOS, limit Android to arm64-v8a, and add EAS build cache keys to speed up warm builds.