From 33901fd8d097abe866d1279afe0315ebd2c8e68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=B6rgens?= Date: Tue, 10 Dec 2024 14:00:54 +0800 Subject: [PATCH] Enable debug assertions in integration tests (#714) To catch some bugs, like the recent breakage. --------- Co-authored-by: noelwei --- .github/workflows/integration.yml | 6 ++++-- Cargo.toml | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 767758a8b..ec0de0b14 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -56,10 +56,12 @@ jobs: - name: Run example env: RAYON_NUM_THREADS: 2 - run: cargo run --release --package ceno_zkvm --example riscv_opcodes --target ${{ matrix.target }} -- --start 10 --end 11 + RUSTFLAGS: "-C opt-level=3" + run: cargo run --package ceno_zkvm --example riscv_opcodes --target ${{ matrix.target }} -- --start 10 --end 11 - name: Run fibonacci env: RAYON_NUM_THREADS: 8 RUST_LOG: debug - run: cargo run --release --package ceno_zkvm --bin e2e --target ${{ matrix.target }} -- --platform=sp1 ceno_zkvm/examples/fibonacci.elf \ No newline at end of file + RUSTFLAGS: "-C opt-level=3" + run: cargo run --package ceno_zkvm --bin e2e --target ${{ matrix.target }} -- --platform=sp1 ceno_zkvm/examples/fibonacci.elf diff --git a/Cargo.toml b/Cargo.toml index 1ee0b66ef..ead19b880 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,5 +52,8 @@ tracing = { version = "0.1", features = [ tracing-forest = { version = "0.1.6" } tracing-subscriber = { version = "0.3", features = ["env-filter"] } +[profile.dev] +lto = "thin" + [profile.release] lto = "thin"