From d1b74c8e1607a313b0b88d2398ef6dc803dc8148 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 6 Oct 2020 16:27:40 +0100 Subject: [PATCH] ci: run Rust build in release mode too --- circle.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/circle.yml b/circle.yml index fed5bafd31..8a24b0deb9 100644 --- a/circle.yml +++ b/circle.yml @@ -531,10 +531,13 @@ jobs: rustfmt --version cargo fmt --all -- --check - run: - name: Build + name: Build (debug mode) command: cargo build - run: - name: Test + name: Build (release mode) + command: cargo build --release + - run: + name: Test (debug mode) command: cargo test - run: name: Package @@ -556,10 +559,10 @@ jobs: apt -yq install llvm-8-dev clang-8 --no-install-recommends rustup toolchain install nightly-x86_64-unknown-linux-gnu - run: - name: Build + name: Build (debug mode) command: RUSTFLAGS="-Z sanitizer=address" ASAN_OPTIONS=detect_leaks=1 cargo +nightly build --target x86_64-unknown-linux-gnu - run: - name: Test +2 name: Test (debug mode) command: RUSTFLAGS="-Z sanitizer=address -C opt-level=0" ASAN_OPTIONS=detect_leaks=1 cargo +nightly test --target x86_64-unknown-linux-gnu workflows: