chore(ci): optimize android app build with RN App#232
Open
Conversation
491c981 to
5000b11
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request optimizes CI build times by reducing the number of Android architectures built from four (armeabi-v7a, arm64-v8a, x86, x86_64) to one (arm64-v8a), and modernizes Gradle caching by switching from manual cache configuration to the official gradle/actions/setup-gradle action. These changes reduce RN Tester CI time by ~4 minutes and RN App + Android App CI time by ~5 minutes.
Changes:
- Configure single architecture (arm64-v8a) in gradle.properties for TesterIntegrated and RNApp
- Add ndk.abiFilters to AndroidApp build configuration to enforce single architecture
- Replace manual Gradle cache restoration with gradle/actions/setup-gradle@v4 in CI workflow
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| apps/TesterIntegrated/kotlin/gradle.properties | Reduced reactNativeArchitectures from four architectures to arm64-v8a only |
| apps/RNApp/android/gradle.properties | Reduced reactNativeArchitectures from four architectures to arm64-v8a only |
| apps/AndroidApp/app/build.gradle.kts | Added ndk.abiFilters configuration to enforce arm64-v8a architecture |
| .github/workflows/ci.yml | Replaced manual Gradle cache with gradle/actions/setup-gradle@v4 action |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This reduces the total time of the CI for:
This is mainly achieved by building only one architecture(arm64-v8a) instead of four. Apart from it, we change to
gradle/actions/setup-gradle@v4for better cache handling.Test plan
CI passes - 🟢
Visuals
RN Tester
Before:
After:
RN App + Android Appr
Before:
After: