-
Notifications
You must be signed in to change notification settings - Fork 6
ci(android): add cargo + gradle build caches #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Cache Cargo registry/git and Gradle build dirs for the sequential Tauri Android pipeline to reduce cold-start time. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
📝 WalkthroughWalkthroughTwo GitHub Actions workflow files were updated to enhance CI/CD performance by adding Cargo dependency caching and expanding Gradle build artifact caching for Android builds across the registry, git dependencies, and generated Android build directories. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Deploying maple with
|
| Latest commit: |
32bbab8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8c45d108.maple-ca8.pages.dev |
| Branch Preview URL: | https://ci-android-cache-improvement.maple-ca8.pages.dev |
Greptile SummaryThis PR adds two caching improvements to the Android build pipeline: Cargo registry/git caching (keyed on
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub Actions
participant Cache as Actions Cache
participant Rust as Rust Toolchain
participant Gradle as Gradle Build
participant Build as Build Process
GH->>GH: Setup environment (Java, Android SDK, Bun)
GH->>Rust: Install Rust with Android targets
Note over GH,Cache: New: Cargo Registry and Git Cache
GH->>Cache: Check cargo cache<br/>(keyed on Cargo.lock)
Cache-->>GH: Restore cargo registry and git repos
GH->>GH: Setup Android NDK
Note over GH,Cache: Enhanced: Gradle Cache with Build Dirs
GH->>Cache: Check gradle cache<br/>(keyed on gradle files)
Cache-->>GH: Restore gradle wrapper, caches,<br/>and project build dirs
GH->>GH: Install and configure sccache
GH->>Cache: Restore sccache cache
GH->>Build: Install dependencies and build
Build->>Rust: Compile Rust code<br/>(leverages cargo cache)
Build->>Gradle: Build Android app<br/>(leverages gradle cache)
Build-->>GH: Output APK and AAB artifacts
GH->>Cache: Save updated caches for future runs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Master now has the simple revert back to the sequential pipeline. This PR only adds cache improvements on top:
No build logic changes.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.