Skip to content

Commit 3c52532

Browse files
committed
Fix test workflow
1 parent 6850871 commit 3c52532

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/test.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ jobs:
3131
with:
3232
toolchain: nightly
3333
override: true
34+
components: llvm-tools
3435
- uses: Swatinem/rust-cache@v1
3536
- uses: actions-rs/cargo@v1
3637
with:
3738
command: test
3839
args: --locked --all-features --no-fail-fast
3940
env:
4041
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
4747
- uses: coverallsapp/[email protected]
4848
with:
4949
github-token: ${{ secrets.GITHUB_TOKEN }}
50-
path-to-lcov: ${{ steps.grcov.outputs.report }}
50+
path-to-lcov: coverage

grcov.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
branch: true
22
llvm: true
33
ignore-not-existing: true
4+
binary-path: "nicator/target/debug/"
5+
source-dir: "nicator"
46
ignore:
57
- "/usr/*"
68
- "/home/runner/.cargo/*"

0 commit comments

Comments
 (0)