Skip to content

Commit 24c2578

Browse files
committed
QL: cache query compilation
1 parent 5d93309 commit 24c2578

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ql-for-ql-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17+
- name: Cache queries
18+
id: cache-queries
19+
uses: actions/cache@v2
20+
with:
21+
path: ${{ runner.temp }}/query-pack.zip
22+
key: ${{ runner.os }}-queries-${{ hashFiles('**/*.ql*') }}
1723
- name: Find codeql
24+
if: steps.cache-queries.outputs.cache-hit != 'true'
1825
id: find-codeql
1926
uses: github/codeql-action/init@esbena/ql
2027
with:
2128
languages: javascript # does not matter
2229
- name: Build query pack
30+
if: steps.cache-queries.outputs.cache-hit != 'true'
2331
run: |
2432
cd ql/ql/src
2533
"${CODEQL}" pack create

0 commit comments

Comments
 (0)