Prefer the upstream cargo-llvm-cov CI step

pull/230/head
Wilfred Hughes 2022-04-02 16:17:34 +07:00
parent 1df4971deb
commit 276be1528c
1 changed files with 4 additions and 2 deletions

@ -8,9 +8,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install nightly-2022-03-30 --component llvm-tools-preview
run: rustup toolchain install nightly --component llvm-tools-preview
- name: Install cargo-llvm-cov
run: curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov