File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,6 +512,53 @@ jobs:
512512 - spectest
513513 - collect_coverage_data
514514
515+ bindings-rust :
516+ docker :
517+ - image : rust:1-buster
518+ steps :
519+ - checkout
520+ - run :
521+ name : Update environment
522+ command : |
523+ echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
524+ apt -qq update
525+ apt -yq -t buster-backports install cmake --no-install-recommends
526+ apt -yq install libclang-dev clang cmake --no-install-recommends
527+ rustup component add rustfmt
528+ rustup update
529+ - run :
530+ name : Check formatting
531+ command : |
532+ rustfmt --version
533+ cargo fmt --all -- --check
534+ - run :
535+ name : Build
536+ command : cargo build
537+ - run :
538+ name : Test
539+ command : cargo test
540+
541+ bindings-rust-asan-combined :
542+ docker :
543+ - image : rust:1-buster
544+ steps :
545+ - checkout
546+ - run :
547+ name : Update environment
548+ command : |
549+ echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
550+ apt -qq update
551+ apt -yq -t buster-backports install cmake --no-install-recommends
552+ apt -yq install llvm-8-dev clang-8 --no-install-recommends
553+ rustup toolchain install nightly-x86_64-unknown-linux-gnu
554+ rustup update
555+ - run :
556+ name : Build
557+ command : RUSTFLAGS="-Z sanitizer=address" ASAN_OPTIONS=detect_leaks=1 cargo +nightly build --target x86_64-unknown-linux-gnu
558+ - run :
559+ name : Test
560+ command : RUSTFLAGS="-Z sanitizer=address -C opt-level=0" ASAN_OPTIONS=detect_leaks=1 cargo +nightly test --target x86_64-unknown-linux-gnu
561+
515562workflows :
516563 version : 2
517564
@@ -537,6 +584,10 @@ workflows:
537584 - spectest :
538585 requires :
539586 - coverage-clang
587+ - bindings-rust
588+ - bindings-rust-asan-combined :
589+ requires :
590+ - bindings-rust
540591
541592 benchmarking :
542593 when : <<pipeline.parameters.benchmark>>
You can’t perform that action at this time.
0 commit comments