Skip to content

Commit

Permalink
Faster tarpaulin installation in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed May 3, 2023
1 parent 9c993f5 commit 0a5d7f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Setup cargo-tarpaulin.
run: cargo install cargo-tarpaulin
- name: Run tarpaulin to compute coverage.
run: cargo tarpaulin --verbose --lib --examples --all-features --out Xml
# Install action using cargo-binstall, which is faster because we don't have to compile tarpaulin every time.
- uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
- run: cargo tarpaulin --verbose --lib --examples --all-features --out Xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 0a5d7f0

Please sign in to comment.