Parcourir la source

chore: ccache in pipeline should include build_type in the key

Almamu il y a 1 an
Parent
commit
3c6effa83d
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      .github/workflows/cmake.yml

+ 3 - 3
.github/workflows/cmake.yml

@@ -40,7 +40,7 @@ jobs:
     - name: ccache
       uses: hendrikmuhs/ccache-action@v1.2
       with:
-        key: ${{ github.job }}-${{ matrix.os }}  # Eg. "some_build-ubuntu-latest"
+        key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.build_type }}  # Eg. "some_build-ubuntu-latest"
 
     - name: Install dependencies
       if: matrix.os == 'ubuntu-22.04'
@@ -81,7 +81,7 @@ jobs:
       - name: ccache
         uses: hendrikmuhs/ccache-action@v1.2
         with:
-          key: ${{ github.job }}-${{ matrix.os }}  # Eg. "some_build-ubuntu-latest"
+          key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.build_type }}  # Eg. "some_build-ubuntu-latest"
 
       - name: Initialize CodeQL
         # Initializes the CodeQL tools for scanning.
@@ -129,7 +129,7 @@ jobs:
     - name: ccache
       uses: hendrikmuhs/ccache-action@v1.2
       with:
-        key: ${{ github.job }}-${{ matrix.os }}  # Eg. "some_build-ubuntu-latest"
+        key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.build_type }}  # Eg. "some_build-ubuntu-latest"
 
     - name: Install dependencies
       if: matrix.os == 'ubuntu-22.04'