Skip to content

Don't start a Gradle daemon in CI workflows - #122

Closed
Besi97 wants to merge 1 commit into
mainfrom
ci/no-gradle-daemon
Closed

Besi97 wants to merge 1 commit into
mainfrom
ci/no-gradle-daemon

Conversation

@Besi97

@Besi97 Besi97 commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Gradle was starting a daemon for every job in the Build and Release workflows. On ephemeral runners the daemon is never reused across jobs or matrix entries — each one just pays the startup cost and parks a 512MB+ JVM for nothing. All gradlew invocations in both workflows now pass --no-daemon; build behavior is otherwise unchanged.

Closes #99

Runners are ephemeral, so a daemon is never reused across jobs or
matrix entries and only adds startup cost and memory. Pass --no-daemon
to every gradlew invocation in the Build and Release workflows.
@Besi97

Besi97 commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

This is actually wrong. I checked previous runs better, and the Gradle daemon is actually reused across steps, I was wrong.

@Besi97 Besi97 closed this Sep 2, 2026
@Besi97
Besi97 deleted the ci/no-gradle-daemon branch September 2, 2026 16:35
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.

Don't start a Gradle Daemon in CI workflows

1 participant