Skip to content

fix builds and coverage #38

fix builds and coverage

fix builds and coverage #38

Workflow file for this run

name: Coverage
on: [push, pull_request]
jobs:
code-coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler:
- g++-12
build_type: [Release]
env:
CXX: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v3
- run: |
sudo apt-get update
sudo apt-get -y --no-upgrade install ${{ matrix.compiler }}
sudo apt-get install -y libgtest-dev
- run: cmake -E make_directory build
- working-directory: build/
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-coverage" -DCOVERAGE=ON
cmake --build .
ctest --output-on-failure
bash <(curl -s https://codecov.io/bash)