Эх сурвалжийг харах

Update cache key to use FULL_BRANCH instead of BASE_BRANCH

jimsterino98 4 сар өмнө
parent
commit
c70c80fcda

+ 2 - 3
.github/workflows/build.yml

@@ -97,10 +97,9 @@ jobs:
         uses: actions/cache@v4
         with:
          path: ${{ env.BCACHE_DIR }}
-         key: bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.BASE_BRANCH }}
+         key: bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.FULL_BRANCH }}
          restore-keys: |
-            bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.BASE_BRANCH }}
-            bcache-${{ runner.os }}-${{ inputs.build_type }}-
+            bcache-${{ runner.os }}-${{ inputs.build_type }}-${{ env.FULL_BRANCH }}
 
       - name: Install ccache
         if: inputs.cache == 'true' && inputs.build_type == 'make'