Match ForestryMC/IC2 setup-build: cache-jdk, and use setup-gradle
cache-provider basic on GitHub / external on Gitea (avoids ECONNREFUSED
to GitHub cache). Cache ~/.gradle caches+wrapper via actions/cache.
Nest actions/gradle-actions@v5 rejects cache-provider; v6 supports it
(and defaults to enhanced — keep Gitea on external). Cache ~/apt-cache
so xvfb debs can skip apt-get update when Actions cache is available.
The apparent checkstyle stall was :HMCL:test stuck after
GtkPlatformFactory Internal Error (xvfb without libgtk). Install GTK/X11
deps, use software prism, and bound Platform.startup in test launchers.
layue13
merged commit b8305f85b0 into main2026-11-09 19:57:42 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
CI logs showed
GetCacheEntryDownloadURL: ECONNREFUSED— setup-gradle’s default GitHub Actions cache does not work on nest Gitea runners.Org pattern (ForestryMC
setup-build, IndustrialCraft2)setup-java→cache-jdk: truesetup-gradle→cache-provider: basicon github.com,externalon Gitea~/.gradle/caches+ wrapper) withactions/cacheChange
gradle.ymlupdated accordingly (still uses nest mirroractions/gradle-actions).PR #7’s
publish-tdlm.ymlgets the same treatment on its branch.