From 4145024c6b74eaefe0e6622608edeebcba28345c Mon Sep 17 00:00:00 2001 From: Seyon Sivarajah Date: Mon, 25 Nov 2024 11:34:48 +0000 Subject: [PATCH] ci: add llvm to coverage check (#1682) --- .github/workflows/ci-rs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci-rs.yml b/.github/workflows/ci-rs.yml index c7e3d8bec..a91380126 100644 --- a/.github/workflows/ci-rs.yml +++ b/.github/workflows/ci-rs.yml @@ -223,6 +223,11 @@ jobs: components: llvm-tools-preview - name: Install CapnProto run: sudo apt-get install -y capnproto + - name: Install LLVM and Clang + uses: KyleMayes/install-llvm-action@v2 + with: + version: "14.0" + env: true - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Run tests with coverage instrumentation @@ -230,6 +235,7 @@ jobs: cargo llvm-cov clean --workspace cargo llvm-cov --no-report --no-default-features --doctests cargo llvm-cov --no-report --all-features --doctests + cargo llvm-cov --no-report -p hugr-llvm --features llvm14-0 --doctests - name: Generate coverage report run: cargo llvm-cov --all-features report --codecov --output-path coverage.json - name: Upload coverage to codecov.io