File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 48
48
run : |
49
49
brew install gnu-tar
50
50
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
51
+ - name : Install cargo-cross
52
+ if : runner.os == 'Linux'
53
+ run : cargo install cross --version 0.2.1
51
54
- uses : ./.github/actions/os-version
52
55
id : os_version
53
56
- name : Cache entire extractor
80
83
run : cd extractor && cargo test --verbose
81
84
- name : Release build
82
85
if : steps.cache-extractor.outputs.cache-hit != 'true'
83
- run : cd extractor && cargo build --release
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
95
- name : Generate dbscheme
85
96
if : ${{ matrix.os == 'ubuntu-latest' && steps.cache-extractor.outputs.cache-hit != 'true'}}
86
97
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