Skip to content

Commit ea901ad

Browse files
authored
Merge pull request #7799 from github/aibaars/fix-ruby-workflows
Ruby: use ruby specific cache key
2 parents 0f85a52 + 73d6055 commit ea901ad

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
CODEQL_THREADS: 4 # TODO: remove this once it's set by the CLI
1818
strategy:
1919
matrix:
20-
repo:
20+
repo:
2121
- github/codeql
2222
- github/codeql-go
2323
runs-on: ubuntu-latest
@@ -35,7 +35,7 @@ jobs:
3535
~/.cargo/registry
3636
~/.cargo/git
3737
ql/target
38-
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
38+
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('ql/**/Cargo.lock') }}
3939
- name: Build Extractor
4040
run: cd ql; env "PATH=$PATH:`dirname ${CODEQL}`" ./create-extractor-pack.sh
4141
env:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@ jobs:
2929
~/.cargo/registry
3030
~/.cargo/git
3131
ql/target
32-
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
32+
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('ql/**/Cargo.lock') }}
3333
- name: Build extractor
3434
run: |
3535
cd ql;
3636
codeqlpath=$(dirname ${{ steps.find-codeql.outputs.codeql-path }});
3737
env "PATH=$PATH:$codeqlpath" ./create-extractor-pack.sh
3838
- name: Run QL tests
39-
run: |
39+
run: |
4040
"${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}/ql/extractor-pack" --consistency-queries ql/ql/consistency-queries ql/ql/test
4141
env:
4242
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
4343
- name: Check QL formatting
44-
run: |
44+
run: |
4545
find ql/ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 "${CODEQL}" query format --check-only
4646
env:
4747
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
4848
- name: Check QL compilation
49-
run: |
49+
run: |
5050
"${CODEQL}" query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ql/extractor-pack" "ql/ql/src" "ql/ql/examples"
5151
env:
5252
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}

.github/workflows/ruby-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
~/.cargo/registry
5151
~/.cargo/git
5252
ruby/target
53-
key: ${{ runner.os }}-rust-cargo-${{ hashFiles('**/Cargo.lock') }}
53+
key: ${{ runner.os }}-ruby-rust-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
5454
- name: Check formatting
5555
run: cargo fmt --all -- --check
5656
- name: Build

ruby/actions/create-extractor-pack/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
~/.cargo/registry
1010
~/.cargo/git
1111
ruby/target
12-
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
12+
key: ${{ runner.os }}-ruby-qltest-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
1313
- name: Build Extractor
1414
shell: bash
1515
run: scripts/create-extractor-pack.sh

0 commit comments

Comments
 (0)