From 78b07e0a46db2ffedf743072a91fa96fad7ff298 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 13 Jan 2023 00:10:28 +0100 Subject: [PATCH] git: Make runner cache keys unique (#878) --- .github/workflows/analysis.yml | 6 +++--- .github/workflows/build.yml | 6 +++--- .github/workflows/tests.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 8ffb5971d..b6512d1b8 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -28,8 +28,8 @@ jobs: - name: 📜 Setup ccache uses: hendrikmuhs/ccache-action@v1.2 with: - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build-${{ github.run_id }} - restore-keys: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build + key: ${{ runner.os }}-analysis-${{ secrets.CACHE_VERSION }}-build-${{ github.run_id }} + restore-keys: ${{ runner.os }}-analysis-${{ secrets.CACHE_VERSION }}-build max-size: 50M - name: 📜 Restore CMakeCache @@ -37,7 +37,7 @@ jobs: with: path: | build/CMakeCache.txt - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build-${{ hashFiles('**/CMakeLists.txt') }} + key: ${{ runner.os }}-analysis-${{ secrets.CACHE_VERSION }}-build-${{ hashFiles('**/CMakeLists.txt') }} - name: ⬇️ Install dependencies run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c064c8c3b..b1d572464 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -293,8 +293,8 @@ jobs: - name: 📜 Setup ccache uses: hendrikmuhs/ccache-action@v1.2 with: - key: appimage-${{ secrets.CACHE_VERSION }}-build-${{ github.run_id }} - restore-keys: appimage-${{ secrets.CACHE_VERSION }}-build + key: ${{ runner.os }}-appimage-${{ secrets.CACHE_VERSION }}-build-${{ github.run_id }} + restore-keys: ${{ runner.os }}-appimage-${{ secrets.CACHE_VERSION }}-build max-size: 50M - name: 📜 Restore CMakeCache @@ -302,7 +302,7 @@ jobs: with: path: | build-appimage/CMakeCache.txt - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build-${{ hashFiles('**/CMakeLists.txt') }} + key: ${{ runner.os }}-appimage-${{ secrets.CACHE_VERSION }}-build-${{ hashFiles('**/CMakeLists.txt') }} - name: ⬇️ Install dependencies run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0038df932..58f4621a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,8 +25,8 @@ jobs: - name: 📜 Setup ccache uses: hendrikmuhs/ccache-action@v1.2 with: - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build-${{ github.run_id }} - restore-keys: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build + key: ${{ runner.os }}-tests-${{ secrets.CACHE_VERSION }}-build-${{ github.run_id }} + restore-keys: ${{ runner.os }}-tests-${{ secrets.CACHE_VERSION }}-build max-size: 50M @@ -35,7 +35,7 @@ jobs: with: path: | build/CMakeCache.txt - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-build-${{ hashFiles('**/CMakeLists.txt') }} + key: ${{ runner.os }}-tests-${{ secrets.CACHE_VERSION }}-build-${{ hashFiles('**/CMakeLists.txt') }} - name: ⬇️ Install dependencies run: |