Skip to content

Commit 89ee5bd

Browse files
committedOct 3, 2024··
Merge #746: ci: fix coverage workflow
27ed2f5 ci: fix coverage workflow (Cameron Garnham) Pull request description: > Note: This pull request needs to be merged for it to take effect. ACKs for top commit: josecelano: ACK 27ed2f5 Tree-SHA512: 3d2a191366a4c928a60ab86d7de0220fd89652b192009a33310525870c22f00f25b3d082b23333962d80dbefd37a7af1e5ef8494c8ef1751e00b7e7d61064fcc
2 parents b2a632f + 27ed2f5 commit 89ee5bd

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed
 

‎.github/workflows/coverage.yaml

+19-16
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
@@ -36,7 +36,7 @@ jobs:
3636

3737
- id: setup
3838
name: Setup Toolchain
39-
uses: dtolnay/rust-toolchain@stable
39+
uses: dtolnay/rust-toolchain@nightly
4040
with:
4141
toolchain: nightly
4242
components: llvm-tools-preview
@@ -45,16 +45,11 @@ jobs:
4545
name: Enable Workflow Cache
4646
uses: Swatinem/rust-cache@v2
4747

48-
# Temporary Cleaning to avoid Rust Compiler Bug
49-
- id: clean
50-
name: Make Build Clean
51-
run: cargo clean
52-
5348
- id: tools
5449
name: Install Tools
5550
uses: taiki-e/install-action@v2
5651
with:
57-
tool: cargo-llvm-cov, cargo-nextest, grcov
52+
tool: grcov
5853

5954
- id: imdl
6055
name: Install Intermodal
@@ -64,16 +59,24 @@ jobs:
6459
name: Run Build Checks
6560
run: cargo check --tests --benches --examples --workspace --all-targets --all-features
6661

62+
- id: clean
63+
name: Clean Build Directory
64+
run: cargo clean
65+
66+
- id: build
67+
name: Pre-build Main Project
68+
run: cargo build --workspace --all-targets --all-features --jobs 2
69+
70+
- id: build_tests
71+
name: Pre-build Tests
72+
run: cargo build --workspace --all-targets --all-features --tests --jobs 2
73+
6774
- id: test
6875
name: Run Unit Tests
69-
run: cargo test --tests --benches --examples --workspace --all-targets --all-features
70-
71-
- id: coverage-llvm
72-
name: Generate Coverage Report with LLVM
73-
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features
76+
run: cargo test --tests --workspace --all-targets --all-features
7477

75-
- id: coverage-grcov
76-
name: Generate Coverage Report with grcov
78+
- id: coverage
79+
name: Generate Coverage Report
7780
uses: alekitto/grcov@v0.2
7881

7982
- id: upload

0 commit comments

Comments
 (0)
Please sign in to comment.