Skip to content

Commit d74deb3

Browse files
committed
Enhance CodeQL caching key to include language, CLI, and standard library
1 parent 1b01c6c commit d74deb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/codeql_unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
uses: actions/cache@v6
7979
with:
8080
path: ${{ github.workspace }}/codeql_cache
81-
key: ${{ runner.os }}-codeql-compilation-${{ github.run_id }}
82-
restore-keys: ${{ runner.os }}-codeql-compilation
81+
key: ${{ runner.os }}-codeql-compilation-${{ matrix.language }}-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library_ident }}-${{ github.run_id }}
82+
restore-keys: ${{ runner.os }}-codeql-compilation-${{ matrix.language }}-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library_ident }}
8383

8484
- name: Install CodeQL packs
8585
uses: ./.github/actions/install-codeql-packs

0 commit comments

Comments
 (0)