ci: align Gradle/JDK caching with TDLM org workflows #16

Merged
layue13 merged 3 commits from cursor/ci-cache-optimize-1729 into main 2026-11-09 19:57:42 +00:00
Owner

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: true
  • setup-gradle → cache-provider: basic on github.com, external on Gitea
  • Cache Gradle home (~/.gradle/caches + wrapper) with actions/cache

Change

gradle.yml updated accordingly (still uses nest mirror actions/gradle-actions).

PR #7’s publish-tdlm.yml gets the same treatment on its branch.

## 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: true` - `setup-gradle` → `cache-provider: basic` on github.com, **`external` on Gitea** - Cache Gradle home (`~/.gradle/caches` + wrapper) with `actions/cache` ## Change `gradle.yml` updated accordingly (still uses nest mirror `actions/gradle-actions`). PR #7’s `publish-tdlm.yml` gets the same treatment on its branch.
layue13 added 1 commit 2026-11-09 17:31:45 +00:00
ci: align Gradle/JDK caching with TDLM org workflows
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (pull_request) Canceled after 1m55s
096146449d
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.
layue13 added 1 commit 2026-11-09 18:27:49 +00:00
ci: bump setup-gradle to v6 and cache apt xvfb debs
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (pull_request) Canceled after 24m45s
a4e6ab3673
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.
layue13 added 1 commit 2026-11-09 19:42:50 +00:00
ci: fix HMCL:test hang — install GTK for JavaFX under xvfb
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (pull_request) Successful in 14m4s
b7e9d7fda4
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 main 2026-11-09 19:57:42 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/HMCL#16