From 0a5d7f0385dddb09f649a10233d80aa3af1b2c66 Mon Sep 17 00:00:00 2001 From: Samuel Pastva Date: Wed, 3 May 2023 16:07:33 +0200 Subject: [PATCH] Faster tarpaulin installation in CI. --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 703f67d..2b7d773 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: