From 4ef4053385a388f6a53e4cfdeae6ba5602421b8f Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Fri, 8 Jan 2021 10:25:25 +0100 Subject: [PATCH] Actions: apply CODEQL_THREADS to all steps --- .github/workflows/dataset_measure.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dataset_measure.yml b/.github/workflows/dataset_measure.yml index 706f4269aef..6c15271c7a7 100644 --- a/.github/workflows/dataset_measure.yml +++ b/.github/workflows/dataset_measure.yml @@ -12,6 +12,8 @@ on: jobs: measure: + env: + CODEQL_THREADS: 4 # TODO: remove this once it's set by the CLI strategy: fail-fast: false matrix: @@ -27,7 +29,6 @@ jobs: unzip -q codeql-linux64.zip env: GITHUB_TOKEN: ${{ github.token }} - CODEQL_THREADS: 4 # TODO: remove this once it's set by the CLI - uses: actions/cache@v2 with: path: | @@ -53,7 +54,7 @@ jobs: - name: Measure database run: | mkdir -p "stats/${{ matrix.repo }}" - codeql/codeql dataset measure --output "stats/${{ matrix.repo }}/stats.xml" "${{ runner.temp }}/database/db-ruby" + codeql/codeql dataset measure --threads 4 --output "stats/${{ matrix.repo }}/stats.xml" "${{ runner.temp }}/database/db-ruby" - uses: actions/upload-artifact@v2 with: name: measurements