File tree 2 files changed +17
-18
lines changed
2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -17,29 +17,28 @@ jobs:
17
17
- uses : actions/checkout@v3
18
18
- uses : actions-rs/toolchain@v1
19
19
with :
20
- toolchain : nightly
20
+ toolchain : stable
21
21
override : true
22
22
components : llvm-tools-preview # Required for grcov
23
23
24
24
- name : Build
25
25
run : cargo build --verbose
26
26
27
- - name : Run tests
28
- run : cargo test --verbose --no-fail-fast
27
+ - name : Install cargo-llvm-cov and run tests
28
+ run : cargo install cargo-llvm-cov && cargo llvm-cov --lcov --output-path=./lcov.info
29
29
env :
30
30
CARGO_INCREMENTAL : ' 0'
31
- RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
32
- RUSTDOCFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
31
+ RUSTFLAGS : ' -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cinstrument-coverage'
32
+ RUSTDOCFLAGS : ' -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cinstrument-coverage'
33
+
34
+ - name : Codecov
35
+ # You may pin to the exact commit or the version.
36
+
37
+ with :
38
+ # Repository upload token - get it from codecov.io. Required only for private repositories
39
+ token : ${{ secrets.CODECOV_TOKEN }}
40
+ file : ./lcov.info
41
+ # Specify whether the Codecov output should be verbose
42
+ verbose : true
43
+ fail_ci_if_error : true
33
44
34
- - name : Run grcov
35
- run : |
36
- cargo install grcov
37
- grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
38
-
39
- - name : Upload coverage to Codecov
40
- uses : codecov/codecov-action@v3
41
- with :
42
- token : ${{ secrets.CODECOV_TOKEN }}
43
- files : lcov.info
44
- fail_ci_if_error : true
45
- verbose : true
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " sketchlib"
3
- version = " 0.1.0 "
3
+ version = " 0.1.1 "
4
4
authors = [
5
5
6
6
" Nicholas Croucher <[email protected] >" ,
You can’t perform that action at this time.
0 commit comments