Skip to content

Commit

Permalink
ci: run Rust build in release mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Oct 6, 2020
1 parent 9464e15 commit d1b74c8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit d1b74c8

Please sign in to comment.