From bcd090af98dc7e239610f026128e7bf97d2b499c Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sun, 21 Jul 2024 13:40:50 +0100 Subject: [PATCH] ci: run conformance with debug assertions (#4386) Run conformance with debug assertions enabled to ensure `debug_assert!`s pass. --- .cargo/config.toml | 2 +- Cargo.toml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index ffd70d382e7a2..bf0a891312056 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,7 +3,7 @@ ck = "check --workspace --all-features --all-targets --locked" lint = "clippy --workspace --all-targets --all-features" codecov = "llvm-cov --workspace --ignore-filename-regex tasks" -coverage = "run -p oxc_coverage --profile release-thin --" +coverage = "run -p oxc_coverage --profile coverage --" benchmark = "run -p oxc_benchmark --release --" minsize = "run -p oxc_minsize --release --" rule = "run -p rulegen" diff --git a/Cargo.toml b/Cargo.toml index cea00233227ed..cd06bf88d9cf1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -210,7 +210,8 @@ strip = "symbols" # set to `false` for debug information debug = false # set to `true` for debug information panic = "abort" # Let it crash and force ourselves to write safe Rust. -# Faster compile time with thin lto -[profile.release-thin] -inherits = "release" -lto = "thin" +# Profile for `cargo coverage` +[profile.coverage] +inherits = "release" +lto = "thin" # Faster compile time with thin lto +debug-assertions = true # Make sure `debug_assert!`s pass