Skip to content

Bump version to 5.4.0 #149

Bump version to 5.4.0

Bump version to 5.4.0 #149

Workflow file for this run

name: Test Coverage
on: [pull_request, workflow_dispatch]
jobs:
build:
name: Report Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Install vcpkg (Linux/macOS)
if: runner.os != 'Windows'
shell: bash
run: |
git clone https://github.com/microsoft/vcpkg.git "$HOME/vcpkg"
"$HOME/vcpkg/bootstrap-vcpkg.sh" -disableMetrics
echo "VCPKG_ROOT=$HOME/vcpkg" >> "$GITHUB_ENV"
echo "$HOME/vcpkg" >> "$GITHUB_PATH"
- name: Install vcpkg (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
git clone https://github.com/microsoft/vcpkg.git "$env:USERPROFILE\vcpkg"
& "$env:USERPROFILE\vcpkg\bootstrap-vcpkg.bat" -disableMetrics
echo "VCPKG_ROOT=$env:USERPROFILE\vcpkg" >> $env:GITHUB_ENV
echo "$env:USERPROFILE\vcpkg" >> $env:GITHUB_PATH
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake -DENABLE_COVERAGE=ON ..
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build .
- name: Prepare coverage data
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --target cov_data
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v4
with:
coverage-files: build/cov.info.cleaned
minimum-coverage: 30
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{github.workspace}}
update-comment: true