ci(release): drop setup-gradle from the publish job - #52
Merged
Merged
Conversation
It was the last one left in any workflow, and it restored a cache nothing writes: ci.yml removed its own copies, and this one carried cache-read-only: true. The reason ci.yml gave applies here too -- a warm GRADLE_USER_HOME for this project is ~31 GB against a 10 GB per-repository cache ceiling, so the action could never store what it appeared to store. Nothing else is lost: the job runs ./gradlew --no-daemon, which needs no setup from the action, and setup-java still provides the JDK since this job does not run in the CI container. The cost, paid knowingly, is a cold download of the IntelliJ platform artifacts on every release -- a few minutes, a few times a month, against a cache that was not working. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
What
Removes the last
gradle/actions/setup-gradleleft in any workflow — the one inrelease.yml's publish job.Why it was dead weight
It carried
cache-read-only: true, and afterci.ymldropped its own copies nothing writes that cache any more. The step was paying a restore for an entry no job produces.The reason
ci.ymlrecorded applies here unchanged: a warmGRADLE_USER_HOMEfor this project is ~31 GB (23 GB of extracted IDE transforms, 7.7 GB of downloaded IDE artifacts) against a 10 GB per-repository GitHub Actions cache ceiling. The action could never store what it appeared to store — it saved a partial cache, had it evicted, and re-downloaded the rest next run.What is not lost
./gradlew --no-daemon, which needs no setup from the action.actions/setup-javastays: this job does not run in the CI container, so it is the one providing the JDK.gradle/wrapper/gradle-wrapper.properties).The cost, paid knowingly and written into the file: a cold download of the IntelliJ platform artifacts on every release — a few minutes, a few times a month, against a cache that was not working.
Verification
release.ymlstill parses and the publish job's steps are intact and in order (checkout → import signing key → tag → checkout tag → draft release → setup-java → build/sign/publish → collect → attest → sign → upload). Nosetup-gradleremains anywhere under.github/.Note this path is not exercised by a pull request —
release.ymlonly runs on a push tomainor a tag. It gets its first real run at the next release.🤖 Generated with Claude Code