File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,20 @@ jobs:
46
46
name : Tests and Coverage Report
47
47
env :
48
48
CARGO_INCREMENTAL : 0
49
- RUSTFLAGS : -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
49
+ RUSTFLAGS : -Cinstrument-coverage -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
50
50
RUSTDOCFLAGS : -Cpanic=abort
51
+ LLVM_PROFILE_FILE : yang_rs-%p-%m.profraw
51
52
runs-on : ubuntu-latest
52
53
steps :
53
54
- uses : actions/checkout@v4
54
- - uses : actions-rs/ toolchain@v1
55
+ - uses : dtolnay/rust- toolchain@nightly
55
56
with :
56
- profile : minimal
57
- toolchain : nightly
58
- override : true
57
+ components : llvm-tools-preview
59
58
- name : Generate test result and coverage report
60
59
run : |
61
60
cargo install cargo2junit grcov;
62
61
cargo test --features bundled $CARGO_OPTIONS -- -Z unstable-options --format json | cargo2junit > results.xml;
63
- grcov . -s . -t lcov --llvm --ignore-not-existing --ignore "/*" --ignore "tests/*" --ignore "examples/*" --ignore "libyang2 -sys/*" -o lcov.info;
62
+ grcov . -s . --binary-path ./target/debug/ - t lcov --llvm --ignore-not-existing --ignore "/*" --ignore "tests/*" --ignore "examples/*" --ignore "libyang3 -sys/*" -o lcov.info;
64
63
- name : Upload test results
65
64
uses : EnricoMi/publish-unit-test-result-action@v1
66
65
with :
You can’t perform that action at this time.
0 commit comments