diff --git a/.gitea/workflows/linux.yml b/.gitea/workflows/linux.yml index 5e2a5d4b..eb8b5120 100644 --- a/.gitea/workflows/linux.yml +++ b/.gitea/workflows/linux.yml @@ -63,7 +63,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 cabc61e9..26de6cb8 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-