Skip to content

Commit a0addc6

Browse files
committed
restore and save early queries compilation cache
1 parent ba82ebb commit a0addc6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/codeql_unit_tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ jobs:
7575
add-to-path: false
7676

7777
- name: Cache queries compilation
78-
uses: actions/cache@v6
78+
id: cache-queries-compilation
79+
uses: actions/cache/restore@v6
7980
with:
8081
path: ${{ github.workspace }}/codeql_cache
8182
key: ${{ runner.os }}-codeql-compilation-${{ matrix.language }}-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library_ident }}-${{ github.run_id }}
@@ -96,6 +97,12 @@ jobs:
9697
--threads 0 \
9798
${{ matrix.language }}
9899
100+
- name: Save queries compilation cache
101+
uses: actions/cache/save@v6
102+
with:
103+
path: ${{ github.workspace }}/codeql_cache
104+
key: ${{ steps.cache-queries-compilation.outputs.cache-primary-key }}
105+
99106
- name: Run test suites
100107
id: run-test-suites
101108
env:

0 commit comments

Comments
 (0)