Skip to content

Commit

Permalink
Merge torrust#744: dev: ci: update coverage build flags
Browse files Browse the repository at this point in the history
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
  • Loading branch information
da2ce7 committed Mar 19, 2024
2 parents 3e6e8b7 + 14ef168 commit b777d3a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: "0"
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"
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"
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"

steps:
- id: checkout_push
Expand Down Expand Up @@ -55,8 +55,9 @@ jobs:
name: Run Build Checks
run: cargo check --tests --benches --examples --workspace --all-targets --all-features

# Run Test Locally:
# 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
- id: clean
name: Clean Build Directory
run: cargo clean

- id: test
name: Run Unit Tests
Expand Down

0 comments on commit b777d3a

Please sign in to comment.