27
27
with :
28
28
token : ${{ secrets.GITHUB_TOKEN }}
29
29
args : --all
30
- tarpaulin :
30
+ coverage :
31
31
strategy :
32
32
matrix :
33
33
rustflags :
@@ -50,30 +50,26 @@ jobs:
50
50
run : sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config cmake zlib1g-dev
51
51
- uses : actions-rs/toolchain@v1
52
52
with :
53
- toolchain : stable
54
- override : true
55
- - name : Run cargo-tarpaulin
56
- uses : actions-rs/tarpaulin@v0.1
53
+ toolchain : stable
54
+ profile : minimal
55
+ components : llvm-tools-preview
56
+ - name : Install cargo-llvm-cov
57
+ uses : taiki-e/install-action@cargo-llvm-cov
58
+ - name : Run codecov
57
59
env :
58
60
RUSTFLAGS : " -C target-cpu=native ${{ matrix.rustflags }}"
59
61
PROPTEST_CASES : 512
62
+ run : cargo llvm-cov --lcov --output-path lcov.txt --features no-inline${{ matrix.features }}
63
+ - name : Generate matrix name
64
+ run : |
65
+ flags="${{ matrix.rustflags }}${{ matrix.features }}"
66
+ flags="${flags/-C target-feature=/}"
67
+ flags="${flags//[- ]/}"
68
+ echo "$flags"
69
+ echo "flags=$flags" >> $GITHUB_ENV
70
+ - uses : codecov/codecov-action@v3
60
71
with :
61
- version : " 0.18.0-alpha3"
62
- args : " --features no-inline${{ matrix.features }} --out Lcov --ignore-tests"
63
- - name : Coveralls GitHub Action
64
- uses : coverallsapp/github-action@v1.1.2
65
- with :
66
- github-token : ${{ secrets.GITHUB_TOKEN }}
67
- parallel : true
68
- flag-name : run-${{ matrix.rustflags }}-${{ matrix.features }}
69
- path-to-lcov : ./lcov.info
70
- finish :
71
- needs :
72
- - tarpaulin
73
- runs-on : ubuntu-latest
74
- steps :
75
- - name : Coveralls Finished
76
- uses : coverallsapp/github-action@master
77
- with :
78
- github-token : ${{ secrets.GITHUB_TOKEN }}
79
- parallel-finished : true
72
+ files : ./lcov.txt # optional
73
+ flags : ${{ env.flags }} # optional
74
+ fail_ci_if_error : true # optional (default = false)
75
+ verbose : true # optional (default = false)
0 commit comments