File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,51 @@ 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 install libclang-dev clang cmake --no-install-recommends
526+ rustup component add rustfmt
527+ rustup update
528+ - run :
529+ name : Check formatting
530+ command : |
531+ rustfmt --version
532+ cargo fmt --all -- --check
533+ - run :
534+ name : Build
535+ command : cargo build
536+ - run :
537+ name : Test
538+ command : cargo test
539+
540+ bindings-rust-asan-combined :
541+ docker :
542+ - image : rust:1-buster
543+ steps :
544+ - checkout
545+ - run :
546+ name : Update environment
547+ command : |
548+ echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
549+ apt -qq update
550+ apt -yq install llvm-8-dev clang-8 cmake --no-install-recommends
551+ rustup toolchain install nightly-x86_64-unknown-linux-gnu
552+ rustup update
553+ - run :
554+ name : Build
555+ command : RUSTFLAGS="-Z sanitizer=address" ASAN_OPTIONS=detect_leaks=1 cargo +nightly build --target x86_64-unknown-linux-gnu
556+ - run :
557+ name : Test
558+ command : RUSTFLAGS="-Z sanitizer=address -C opt-level=0" ASAN_OPTIONS=detect_leaks=1 cargo +nightly test --target x86_64-unknown-linux-gnu
559+
515560workflows :
516561 version : 2
517562
@@ -537,6 +582,10 @@ workflows:
537582 - spectest :
538583 requires :
539584 - coverage-clang
585+ - bindings-rust
586+ - bindings-rust-asan-combined :
587+ requires :
588+ - bindings-rust
540589
541590 benchmarking :
542591 when : <<pipeline.parameters.benchmark>>
You can’t perform that action at this time.
0 commit comments