Skip to content

Commit ad70738

Browse files
committed
Move to llvm cov and codecov
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
1 parent d0aa097 commit ad70738

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

.github/workflows/quality.yaml

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
args: --all
30-
tarpaulin:
30+
coverage:
3131
strategy:
3232
matrix:
3333
rustflags:
@@ -50,30 +50,26 @@ jobs:
5050
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config cmake zlib1g-dev
5151
- uses: actions-rs/toolchain@v1
5252
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
5759
env:
5860
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
5961
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
6071
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

Comments
 (0)