Skip to content

Commit f4604ce

Browse files
committed
redo how queries are cached
1 parent bac939e commit f4604ce

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

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

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,6 @@ jobs:
2727
shell: bash
2828
env:
2929
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
30-
- name: Cache queries
31-
id: cache-queries
32-
uses: actions/cache@v3
33-
with:
34-
path: ${{ runner.temp }}/query-pack.zip
35-
key: queries-${{ hashFiles('ql/**/*.ql*') }}-${{ hashFiles('ql/**/qlpack.yml') }}-${{ hashFiles('ql/ql/src/ql.dbscheme*') }}-${{ steps.get-codeql-version.outputs.version }}
36-
- name: Build query pack
37-
if: steps.cache-queries.outputs.cache-hit != 'true'
38-
run: |
39-
cd ql/ql/src
40-
"${CODEQL}" pack create
41-
cd .codeql/pack/codeql/ql/0.0.0
42-
zip "${PACKZIP}" -r .
43-
rm -rf *
44-
env:
45-
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
46-
PACKZIP: ${{ runner.temp }}/query-pack.zip
47-
- name: Upload query pack
48-
uses: actions/upload-artifact@v3
49-
with:
50-
name: query-pack-zip
51-
path: ${{ runner.temp }}/query-pack.zip
52-
5330
### Build the extractor ###
5431
- name: Cache entire extractor
5532
id: cache-extractor
@@ -95,17 +72,13 @@ jobs:
9572
ql/target/release/ql-extractor.exe
9673
retention-days: 1
9774

98-
### Package the queries and extractor ###
99-
- uses: actions/download-artifact@v3
100-
with:
101-
name: query-pack-zip
102-
path: query-pack-zip
75+
### Package the extractor ###
10376
- uses: actions/download-artifact@v3
10477
with:
10578
name: extractor-ubuntu-latest
10679
path: linux64
10780
- run: |
108-
unzip query-pack-zip/*.zip -d pack
81+
mkdir pack
10982
cp -r ql/codeql-extractor.yml ql/tools ql/ql/src/ql.dbscheme.stats pack/
11083
mkdir -p pack/tools/linux64
11184
if [[ -f linux64/ql-autobuilder ]]; then
@@ -164,6 +137,13 @@ jobs:
164137
db-location: ${{ runner.temp }}/db
165138
config-file: ./ql-for-ql-config.yml
166139

140+
- name: Cache queries
141+
id: cache-queries
142+
uses: actions/cache@v3
143+
with:
144+
path: ql/ql/src/.cache
145+
key: queries-${{ hashFiles('ql/**/*.ql*') }}-${{ hashFiles('ql/**/qlpack.yml') }}-${{ hashFiles('ql/ql/src/ql.dbscheme*') }}-${{ steps.get-codeql-version.outputs.version }}
146+
167147
- name: Perform CodeQL Analysis
168148
uses: github/codeql-action/analyze@71a8b35ff4c80fcfcd05bc1cd932fe3c08f943ca
169149
with:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy