ci: stop caching entire ~/.gradle/caches (was ~4GB) #17

Merged
layue13 merged 1 commits from cursor/shrink-gradle-cache-4ee7 into main 2026-11-09 21:19:13 +00:00
Owner

Why siblings were fine

ForestryMC/IC2/TDLMPack do not actions/cache ~/.gradle/caches. On Gitea they use setup-gradle with cache-provider: external (no Gradle-home Actions cache).

HMCL uniquely cached all of ~/.gradle/caches + wrapper → ~4GB restore, which killed Docker on the Windows act runner (npipe://./pipe/docker_engine).

Change

Wrapper-only cache (small). Same Gitea external pattern as the org.

## Why siblings were fine ForestryMC/IC2/TDLMPack **do not** `actions/cache` `~/.gradle/caches`. On Gitea they use `setup-gradle` with `cache-provider: external` (no Gradle-home Actions cache). HMCL uniquely cached all of `~/.gradle/caches` + wrapper → **~4GB** restore, which killed Docker on the Windows act runner (`npipe://./pipe/docker_engine`). ## Change Wrapper-only cache (small). Same Gitea `external` pattern as the org.
layue13 added 1 commit 2026-11-09 20:37:43 +00:00
ci: stop caching entire ~/.gradle/caches (was ~4GB)
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (pull_request) Successful in 12m22s
82b0459f4d
Match ForestryMC/IC2: Gitea uses setup-gradle cache-provider external
with no whole-home actions/cache. Keep wrapper-only cache so restores
stay small on the Windows Docker runner.
layue13 merged commit 0d58eac860 into main 2026-11-09 21:19:13 +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#17