Files
tantivy/.github/workflows/coverage.yml
T
Paul MasurelandPaul Masurel 4abd98fa19 Bump coverage nightly pin to satisfy cranelift MSRV (#3094)
The coverage job pinned nightly-2025-12-01, which is rustc 1.93. Since
`--all-features --workspace` pulls in jitexpr -> cranelift 0.134.4, and
those crates declare rust-version = "1.94.0", cargo refused to build:

    error: rustc 1.93.1 is not supported by the following packages:
      cranelift@0.134.4 requires rustc 1.94.0

Bump the pin to nightly-2026-08-31 (1.100.0-nightly), which builds
jitexpr cleanly.

Co-authored-by: Paul Masurel <paul.masurel@datadoghq.com>
2026-09-11 09:32:00 +02:00

37 lines
1.2 KiB
YAML

name: Coverage
on:
push:
branches: [main]
permissions:
contents: read
# Ensures that we cancel running jobs for the same PR / same workflow.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
coverage:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust
run: rustup toolchain install nightly-2026-08-31 --profile minimal --component llvm-tools-preview
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: taiki-e/install-action@e4b3a0453201addddc06d3a72db90326aad87084 # cargo-llvm-cov
- name: Generate code coverage
run: cargo +nightly-2026-08-31 llvm-cov --all-features --workspace --doctests --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: true