diff --git a/.gitea/workflows/linux.yml b/.gitea/workflows/linux.yml index 2aca2366..1664f73d 100644 --- a/.gitea/workflows/linux.yml +++ b/.gitea/workflows/linux.yml @@ -64,7 +64,9 @@ jobs: uses: actions/cache@v4 with: path: /root/.cache/ccache - key: ccache-linux-x64-${{ gitea.ref }} + # Versioned key: a claimed primary key is never overwritten (cache + # semantics), so bump this when the cache scheme changes (content-check). + key: ccache-linux-x64-content-${{ gitea.ref }} restore-keys: | ccache-linux-x64- diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f5e51603..251c1bf2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -145,7 +145,9 @@ jobs: uses: actions/cache@v4 with: path: /root/.cache/ccache - key: ccache-linux-x64-${{ gitea.ref }} + # Versioned key: a claimed primary key is never overwritten (cache + # semantics), so bump this when the cache scheme changes (content-check). + key: ccache-linux-x64-content-${{ gitea.ref }} restore-keys: | ccache-linux-x64-