File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,20 @@ jobs:
31
31
with :
32
32
toolchain : nightly
33
33
override : true
34
+ components : llvm-tools
34
35
- uses : Swatinem/rust-cache@v1
35
36
- uses : actions-rs/cargo@v1
36
37
with :
37
38
command : test
38
39
args : --locked --all-features --no-fail-fast
39
40
env :
40
41
CARGO_INCREMENTAL : ' 0'
41
- RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
42
- RUSTDOCFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
43
- -
uses :
actions-rs/[email protected]
44
- id : grcov
45
- with :
46
- config : grcov.yaml
42
+ RUSTFLAGS : ' -Cinstrument-coverage'
43
+ RUSTDOCFLAGS : ' -Cinstrument-coverage'
44
+ LLVM_PROFILE_FILE : ' nicator-%p-%m.profraw'
45
+ - run : cargo install grcov
46
+ - run : grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o coverage
47
47
-
uses :
coverallsapp/[email protected]
48
48
with :
49
49
github-token : ${{ secrets.GITHUB_TOKEN }}
50
- path-to-lcov : ${{ steps.grcov.outputs.report }}
50
+ path-to-lcov : coverage
Original file line number Diff line number Diff line change 1
1
branch : true
2
2
llvm : true
3
3
ignore-not-existing : true
4
+ binary-path : " nicator/target/debug/"
5
+ source-dir : " nicator"
4
6
ignore :
5
7
- " /usr/*"
6
8
- " /home/runner/.cargo/*"
You can’t perform that action at this time.
0 commit comments