File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -81,17 +81,14 @@ jobs:
81
81
- name : Run tests
82
82
if : steps.cache-extractor.outputs.cache-hit != 'true'
83
83
run : cd extractor && cargo test --verbose
84
- - name : Release build
85
- if : steps.cache-extractor.outputs.cache-hit != 'true'
86
- # On linux, build the extractor via cross in a centos7 container.
87
- # This ensures we don't depend on glibc > 2.17.
88
- run : |
89
- if [[ "$RUNNER_OS" == "Linux" ]]; then
90
- CARGO=cross
91
- else
92
- CARGO=cargo
93
- fi
94
- cd extractor && "$CARGO" build --release
84
+ # On linux, build the extractor via cross in a centos7 container.
85
+ # This ensures we don't depend on glibc > 2.17.
86
+ - name : Release build (linux)
87
+ if : steps.cache-extractor.outputs.cache-hit != 'true' && runner.os == 'Linux'
88
+ run : cd extractor && cross build --release
89
+ - name : Release build (windows and macos)
90
+ if : steps.cache-extractor.outputs.cache-hit != 'true' && runner.os != 'Linux'
91
+ run : cd extractor && cargo build --release
95
92
- name : Generate dbscheme
96
93
if : ${{ matrix.os == 'ubuntu-latest' && steps.cache-extractor.outputs.cache-hit != 'true'}}
97
94
run : extractor/target/release/generator --dbscheme ql/lib/ruby.dbscheme --library ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
You can’t perform that action at this time.
0 commit comments