Skip to content

Commit b777d3a

Browse files
committed
Merge torrust#744: dev: ci: update coverage build flags
14ef168 dev: ci: update coverage build flags (Cameron Garnham) Pull request description: Updates Coverage Build Flags according to: https://github.com/mozilla/grcov ACKs for top commit: da2ce7: ACK 14ef168 Tree-SHA512: 485b7bdde35e5088a52c834648acd9beec7d8f3aa7606826518952c906d0817f1f796bd5f0561eb4452859455a91035b87ee33e59aabf755cf187d5db7d76859
2 parents 3e6e8b7 + 14ef168 commit b777d3a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/coverage.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
CARGO_INCREMENTAL: "0"
21-
RUSTFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests"
22-
RUSTDOCFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests"
21+
RUSTFLAGS: "-Z profile -C codegen-units=1 -C opt-level=0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests -C panic=abort"
22+
RUSTDOCFLAGS: "-Z profile -C codegen-units=1 -C opt-level=0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests -C panic=abort"
2323

2424
steps:
2525
- id: checkout_push
@@ -55,8 +55,9 @@ jobs:
5555
name: Run Build Checks
5656
run: cargo check --tests --benches --examples --workspace --all-targets --all-features
5757

58-
# Run Test Locally:
59-
# RUSTFLAGS="-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests" RUSTDOCFLAGS="-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests" CARGO_INCREMENTAL="0" RUST_BACKTRACE=1 cargo test --tests --benches --examples --workspace --all-targets --all-features
58+
- id: clean
59+
name: Clean Build Directory
60+
run: cargo clean
6061

6162
- id: test
6263
name: Run Unit Tests

0 commit comments

Comments
 (0)