use the query compilation cache in the ATM qltest

This commit is contained in:
erik-krogh
2022-11-29 22:20:45 +01:00
parent 5bcb9b285a
commit 84ce23249f

View File

@@ -36,6 +36,12 @@ jobs:
for pack in modelbuilding src; do
codeql pack install --mode verify -- "${pack}"
done
- name: Cache compilation cache
id: query-cache
uses: ./.github/actions/cache-query-compilation
with:
key: js-ml-compilation
- name: Check QL compilation
run: |
@@ -44,6 +50,7 @@ jobs:
--ram 5120 \
--additional-packs "${{ github.workspace }}" \
--threads=0 \
--compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" \
-- \
lib modelbuilding src
@@ -58,11 +65,18 @@ jobs:
- name: Install pack dependencies
run: codeql pack install -- test
- name: Cache compilation cache
id: query-cache
uses: ./.github/actions/cache-query-compilation
with:
key: js-ml-tests
- name: Run QL tests
run: |
codeql test run \
--threads=0 \
--ram 5120 \
--additional-packs "${{ github.workspace }}" \
--compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" \
-- \
test