File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,28 @@ jobs:
78
78
ql/target
79
79
key : ${{ runner.os }}-${{ steps.os_version.outputs.version }}-qltest-cargo-${{ hashFiles('ql/rust-toolchain.toml', 'ql/**/Cargo.lock') }}
80
80
- name : Build extractor
81
+ if : runner.os != 'Windows'
81
82
run : |
82
83
cd ql;
83
84
codeqlpath=$(dirname ${{ steps.find-codeql.outputs.codeql-path }});
84
85
env "PATH=$PATH:$codeqlpath" ./scripts/create-extractor-pack.sh
85
- - name : Run a single QL tests
86
+ - name : Build extractor (Windows)
87
+ if : runner.os == 'Windows'
88
+ shell : pwsh
89
+ run : |
90
+ cd ql;
91
+ $Env:PATH += ";$(dirname ${{ steps.find-codeql.outputs.codeql-path }})"
92
+ pwsh ./scripts/create-extractor-pack.ps1
93
+ - name : Run a single QL tests - Unix
94
+ if : runner.os != 'Windows'
86
95
run : |
87
96
"${CODEQL}" test run --check-databases --search-path "${{ github.workspace }}/ql/extractor-pack" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
88
97
env :
89
- CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
98
+ CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
99
+ - name : Run a single QL tests - Windows
100
+ if : runner.os == 'Windows'
101
+ shell : pwsh
102
+ run : |
103
+ $Env:PATH += ";$(dirname ${{ steps.find-codeql.outputs.codeql-path }})"
104
+ codeql test run --check-databases --search-path "${{ github.workspace }}/ql/extractor-pack" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
105
+
You can’t perform that action at this time.
0 commit comments