From 6af3d19c9c6b97866374b67a4fcf241a298cd172 Mon Sep 17 00:00:00 2001 From: AllenYen Date: Wed, 2 Dec 2026 10:46:33 +0800 Subject: [PATCH] ci: use cargo-llvm-cov 0.9.2 so coverage works with @argfile On Windows, cargo hands rustc its arguments via an @argfile when the command line gets too long (many dependencies plus the longer Rust 1.100 build-dir paths). cargo-llvm-cov 0.9.1's rustc wrapper does not read @argfile, so it never sees --crate-name, does not instrument code_signer, and the report fails with "no coverage data found". 0.9.2 adds @argfile support. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 879c50d..3668410 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,13 @@ jobs: toolchain: stable components: rustfmt, clippy, llvm-tools-preview - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 - - uses: taiki-e/install-action@68a389c788b2cd04016ce8c80ee23b80d2ab3d68 # v2.88.1 + - uses: taiki-e/install-action@43dc658ea8a4fa76c68a84c0acd17c34169b6e2a # v2.90.12 with: - tool: cargo-llvm-cov + # 0.9.2+ understands @argfile. With many dependencies and the longer Rust 1.100 + # build-dir paths, cargo passes rustc args via @argfile on Windows; 0.9.1 then + # misses --crate-name, skips instrumenting this crate and the report fails with + # "no coverage data found". + tool: cargo-llvm-cov@0.9.2 - name: Format run: cargo fmt --check - name: Clippy