diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 499c98d..39a5fd6 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -102,12 +102,19 @@ jobs: sccache-${{ runner.os }}- # Not baked into the rust-ci image (see docker/rust-ci in - # infrastructure) — install fresh each run rather than bumping the - # shared image just for this one project. + # infrastructure) — cache the compiled binary rather than bumping + # the shared image just for this one project. To upgrade, change the + # version here, in the cache key, and in the install command below. + - name: Cache cargo-llvm-cov binary + uses: actions/cache@v4 + with: + path: ~/.cargo/bin/cargo-llvm-cov + key: cargo-llvm-cov-${{ runner.os }}-0.9.1 + - name: Install cargo-llvm-cov run: | rustup component add llvm-tools-preview - command -v cargo-llvm-cov >/dev/null 2>&1 || cargo install cargo-llvm-cov --locked + command -v cargo-llvm-cov >/dev/null 2>&1 || cargo install cargo-llvm-cov --locked --version 0.9.1 # Reports coverage only — no --fail-under-lines yet. main.rs is # excluded: thin argv dispatch exercised by the real end-to-end