Skip to content

Save the Gradle cache from develop pushes for PR CI, replacing the dead AWS build cache - #251

Merged
gpunto merged 6 commits into
developfrom
gradle-actions-cache
Nov 26, 2026
Merged

gpunto merged 6 commits into
developfrom
gradle-actions-cache

Conversation

@gpunto

@gpunto gpunto commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Goal

PR CI runs without a Gradle cache: the AWS S3 build cache is dead and Feeds never turned on Gradle's build cache. Save the Gradle cache from develop pushes to the Actions cache so pull requests restore it, as Chat does since GetStream/stream-chat-android#7078.

Part of AND-2041

Implementation

  • The build conventions workflows move to v1.4.0. Android CI saves the Gradle cache on develop pushes (save-gradle-cache), and the conventions cleanup job keeps one entry per job.
  • Develop runs are no longer cancelled by the next push, so each one saves.
  • Gradle's build cache is turned on, with the local cache enabled on CI only when GRADLE_LOCAL_BUILD_CACHE is set (Android CI sets it).
  • The unused BUILD_CACHE_AWS_* secrets are removed.

Testing

  • actionlint and spotlessCheck pass, and Gradle configures with CI=true.
  • With saves temporarily enabled on this PR, a run saved about 2.1 GB of Gradle cache. A second run restored it (jobs took 1 minute instead of 4 to 7) and the cleanup kept one entry per job, leaving about 3.3 GB.

@gpunto gpunto added the pr:ci CI changes label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled, or the PR is bot-authored.
  • An issue is linked (Linear ticket or GitHub issue), or the PR is bot-authored.

🎉 Great job! This PR is ready for review.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

SDK Size Comparison 📏

SDK Before After Difference Status
stream-feeds-android-client 3.11 MB 3.12 MB 0.01 MB 🟢

@gpunto
gpunto marked this pull request as ready for review November 26, 2026 10:45

@andremion andremion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One small thing inline.

Comment thread settings.gradle.kts Resolved
@gpunto
gpunto requested a review from a team as a code owner November 26, 2026 11:22
@gpunto
gpunto enabled auto-merge (squash) November 26, 2026 11:28
@gpunto
gpunto merged commit 0798a87 into develop Nov 26, 2026
11 checks passed
@gpunto
gpunto deleted the gradle-actions-cache branch November 26, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:ci CI changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants