From d2f9f3188378f92393c1ddbc60712b34defd454a Mon Sep 17 00:00:00 2001 From: opencode Date: Sun, 29 Nov 2026 17:37:57 +0000 Subject: [PATCH] ci: make ccache hits survive per-run compiler installs (hash content, not mtime) --- .gitea/workflows/linux.yml | 3 +++ .gitea/workflows/release.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.gitea/workflows/linux.yml b/.gitea/workflows/linux.yml index b4414a25..2aca2366 100644 --- a/.gitea/workflows/linux.yml +++ b/.gitea/workflows/linux.yml @@ -17,6 +17,9 @@ env: # Jobs run as root in the pinned container; keep this stable so the # actions/cache path below matches. CCACHE_DIR: /root/.cache/ccache + # apt installs a fresh compiler (new mtime) every run; hash its CONTENT so the + # cache still hits across runs (default mtime check would miss every time). + CCACHE_COMPILERCHECK: content jobs: build: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 45199db1..f5e51603 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -30,6 +30,9 @@ env: # Jobs run as root in the pinned container; keep this stable so the # actions/cache path below matches. CCACHE_DIR: /root/.cache/ccache + # apt installs a fresh compiler (new mtime) every run; hash its CONTENT so the + # cache still hits across runs (default mtime check would miss every time). + CCACHE_COMPILERCHECK: content jobs: release: