Skip to content

Commit 3b7ce06

Browse files
committed
Ruby: build queries on an XL worker, and use all the threads
1 parent 999e8ed commit 3b7ce06

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/ruby-build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ jobs:
8282
ruby/target/release/ruby-extractor.exe
8383
retention-days: 1
8484
compile-queries:
85-
runs-on: ubuntu-latest
86-
env:
87-
CODEQL_THREADS: 4 # TODO: remove this once it's set by the CLI
85+
runs-on: ubuntu-latest-xl
8886
steps:
8987
- uses: actions/checkout@v3
9088
- name: Fetch CodeQL
@@ -96,11 +94,11 @@ jobs:
9694
key: ruby-build
9795
- name: Build Query Pack
9896
run: |
99-
codeql pack create ../shared/ssa --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
100-
codeql pack create ../misc/suite-helpers --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
101-
codeql pack create ../shared/regex --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
102-
codeql pack create ql/lib --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
103-
codeql pack create ql/src --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
97+
codeql pack create -j0 ../shared/ssa --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
98+
codeql pack create -j0 ../misc/suite-helpers --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
99+
codeql pack create -j0 ../shared/regex --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
100+
codeql pack create -j0 ql/lib --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
101+
codeql pack create -j0 ql/src --output target/packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
104102
PACK_FOLDER=$(readlink -f target/packs/codeql/ruby-queries/*)
105103
codeql generate query-help --format=sarifv2.1.0 --output="${PACK_FOLDER}/rules.sarif" ql/src
106104
(cd ql/src; find queries \( -name '*.qhelp' -o -name '*.rb' -o -name '*.erb' \) -exec bash -c 'mkdir -p "'"${PACK_FOLDER}"'/$(dirname "{}")"' \; -exec cp "{}" "${PACK_FOLDER}/{}" \;)

0 commit comments

Comments
 (0)