From 9d174d8db17f6152b1a674effbf84515b4486ff7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 May 2026 03:26:37 +0300 Subject: [PATCH] release.yml: drop apt cache (Gitea restore times out on 300MB) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apt cache save works (28s in v0.1.4) but the next run can't restore it: 'getCacheEntry failed: Request timeout' — Gitea cache backend chokes on the ~300MB archive. Drop the cache step rather than burn 30s every run on a save that the next run can't read. Real fix: bake wine + innoextract + xauth + wine32:i386 into a custom CI image on git.okcu.io's registry, use container.image to pull it. Defer until release frequency justifies the setup work. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/release.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cba7e8f..af574ce 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -48,16 +48,13 @@ jobs: key: go-${{ runner.os }}-${{ hashFiles('**/go.sum') }} restore-keys: go-${{ runner.os }}- - # Cache apt downloads — saves ~50s on the wine + innoextract install. - # Bump the cache key (-v2, -v3, ...) when the package list changes. - - name: Cache apt packages - id: apt-cache - uses: actions/cache@v4 - with: - path: | - /var/cache/apt/archives - /var/lib/apt/lists - key: apt-trixie-wine-innoextract-v2 + # NOTE: actions/cache for the apt archive (~300 MB) is disabled. The + # save step works (~28s in v0.1.4) but restore times out on the + # next run — Gitea's cache server can't push 300 MB back fast + # enough. The Wine + Inno Setup install stays at ~1m20s. The + # right fix is a pre-baked Docker image (golang:1.25 + wine + + # innoextract + xauth + wine32:i386) pushed to git.okcu.io as + # the job's container.image. Tracked as future work. - name: Extract version from tag id: version