From dbb85de9cd73b4ae9df786264228cdc31f507de3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 30 Sep 2021 17:39:23 +0200 Subject: [PATCH] Use the same ccache cache key for all languages but not compilers There doesn't seem to be any good reason to use per-language caches, as there are files that are common to all languages. But we do want to use different keys for the different compilers and even different compiler versions, as they yield different results when compiling the same code. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 705c753fb..32267499d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: - name: Install CCache uses: hendrikmuhs/ccache-action@v1 with: - key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.SWIGLANG }} + key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.CC || 'gcc' }}${{ matrix.GCC }} - name: Configure run: |