Skip to content

Commit 5a11dca

Browse files
authored
Fix deprecated command line argument (#37)
*Issue #, if available:* *Description of changes:* By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2f1926a commit 5a11dca

File tree

10 files changed

+778
-305
lines changed

10 files changed

+778
-305
lines changed

.github/actions-rs/grcov.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/rust.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
RUSTFLAGS: "-Cinstrument-coverage"
12+
RUSTDOCFLAGS: "-Cinstrument-coverage"
1113

1214
jobs:
1315
build:
@@ -22,17 +24,15 @@ jobs:
2224
with:
2325
toolchain: nightly
2426
override: true
25-
components: rustfmt, clippy
27+
components: rustfmt, clippy, llvm-tools-preview
28+
- name: Install grcov
29+
run: cargo install grcov
2630
- name: Build
2731
run: cargo build --verbose
2832
- name: Run tests
2933
run: cargo test --verbose --all-features --no-fail-fast
30-
env:
31-
CARGO_INCREMENTAL: '0'
32-
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
33-
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
3434
- name: Code Coverage
35-
uses: actions-rs/[email protected]
35+
run: grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o ./lcov.info
3636
- name: Publish Code Coverage
3737
uses: codecov/codecov-action@v4
3838
with:

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@ fabric.properties
7272

7373
# Built Visual Studio Code Extensions
7474
*.vsix
75+
76+
# Code coverage profiling output files
77+
**.profraw
78+
79+
# LCov file generated by grcov
80+
lcov.info

0 commit comments

Comments
 (0)