github: Remove commit ID from cache keys

This reduces the cache storage for active branches and since caches for
different branches are separate and we abort previous builds of the same
branch, this is not necessary to ensure caches can successfully be stored.
This commit is contained in:
Tobias Brunner committed 2026-04-17 15:18:11 +02:00
1 parent 1d36cae26a
commit 60f4c86780
7 files changed
+12 -30

No files matched your search

+2 -4
View File
@@ -54,11 +54,9 @@ jobs:
uses: actions/cache@v5
with:
path: ~/.cache/ccache
key: ccache-ubuntu-latest-gcc-codeql-${{ github.sha }}
key: ccache-ubuntu-latest-gcc-codeql
restore-keys: |
ccache-ubuntu-latest-gcc-codeql
ccache-ubuntu-latest-gcc-all-${{ github.sha }}
ccache-ubuntu-latest-gcc-all-
ccache-ubuntu-latest-gcc-all
ccache-ubuntu-latest-gcc-
- if: matrix.language == 'cpp'
run: |