Skip to content

Commit cf09f50

Browse files
ci: use cargo-binstall for cargo-tarpaulin installation
Download prebuilt binary instead of compiling from source. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e6c55ae commit cf09f50

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,10 @@ jobs:
207207
- name: Check Rust build
208208
run: cargo check --workspace --all-features
209209

210+
- uses: cargo-bins/cargo-binstall@main
211+
210212
- name: Install cargo-tarpaulin
211-
run: |
212-
# Only install if not already cached
213-
if ! command -v cargo-tarpaulin &> /dev/null; then
214-
cargo install cargo-tarpaulin
215-
else
216-
echo "cargo-tarpaulin already installed (cached)"
217-
fi
213+
run: cargo binstall --no-confirm cargo-tarpaulin
218214

219215
- name: Run Rust tests with coverage
220216
run: |

0 commit comments

Comments
 (0)