Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/coverage.yml
diff options
context:
space:
mode:
authorLeitwolf2026-10-30 10:03:25 +0300
committerGitHub2026-10-30 10:03:25 +0300
commit6a42cdf6461b2577106ef094d6f98025554b6077 (patch)
treefed3945312bd75d050c9c3163584b1ae6fcb1b93 /.github/workflows/coverage.yml
parent471756b77331fa1ab77bc94e6aae228baef903e0 (diff)
parent5d713685c54bb491ad1bbb0fd8f80318bfaf7103 (diff)
downloadcatch3-6a42cdf6461b2577106ef094d6f98025554b6077.tar.gz
Merge pull request #21 from Progmasoft/ci/narrow-macos
Give macOS one CI job and stop building pull requests twice
Diffstat (limited to '.github/workflows/coverage.yml')
-rw-r--r--.github/workflows/coverage.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index eff8d70a..7e66593f 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -14,7 +14,7 @@ permissions:
jobs:
coverage:
- runs-on: macos-latest
+ runs-on: ubuntu-26.04
timeout-minutes: 40
permissions:
contents: read
@@ -22,6 +22,10 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
+ - name: Install Clang, LLVM tools, CMake and Ninja
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y clang llvm cmake ninja-build python3
- name: Configure Clang coverage build
run: >-
cmake --preset basic-tests -G Ninja
@@ -36,8 +40,8 @@ jobs:
run: ctest --test-dir build --output-on-failure -R '^(RunTests|Progmasoft::PropertyTests)$'
- name: Export LLVM source coverage
run: |
- xcrun llvm-profdata merge -sparse build/tests/catch3-*.profraw -o catch3.profdata
- xcrun llvm-cov export \
+ llvm-profdata merge -sparse build/tests/catch3-*.profraw -o catch3.profdata
+ llvm-cov export \
-instr-profile=catch3.profdata \
-format=lcov \
build/tests/SelfTest \
@@ -55,7 +59,7 @@ jobs:
codecov:
needs: coverage
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
- runs-on: ubuntu-latest
+ runs-on: ubuntu-26.04
permissions:
id-token: write
steps: