Skip to content

ci(release): drop setup-gradle from the publish job - #52

Merged
serialexperimentslainnnn merged 1 commit into
developfrom
chore/ci-drop-setup-gradle
Aug 10, 2026
Merged

serialexperimentslainnnn merged 1 commit into
developfrom
chore/ci-drop-setup-gradle

Conversation

@serialexperimentslainnnn

Copy link
Copy Markdown
Owner

What

Removes the last gradle/actions/setup-gradle left in any workflow — the one in release.yml's publish job.

Why it was dead weight

It carried cache-read-only: true, and after ci.yml dropped its own copies nothing writes that cache any more. The step was paying a restore for an entry no job produces.

The reason ci.yml recorded applies here unchanged: a warm GRADLE_USER_HOME for 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

  • The job runs ./gradlew --no-daemon, which needs no setup from the action.
  • actions/setup-java stays: this job does not run in the CI container, so it is the one providing the JDK.
  • Wrapper integrity is unchanged (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.yml still 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). No setup-gradle remains anywhere under .github/.

Note this path is not exercised by a pull request — release.yml only runs on a push to main or a tag. It gets its first real run at the next release.

🤖 Generated with Claude Code

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>
@serialexperimentslainnnn
serialexperimentslainnnn merged commit 639752d into develop Aug 10, 2026
10 checks passed
@serialexperimentslainnnn
serialexperimentslainnnn deleted the chore/ci-drop-setup-gradle branch August 10, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant