Fixed gcov linker options in GH actions

This commit is contained in:
Bartek Kryza
2022-06-09 00:29:50 +02:00
parent dc8c46c7b0
commit 919c52a982
2 changed files with 4 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ jobs:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
- name: Build and unit test
run: |
NUMPROC=2 CMAKE_CXX_FLAGS="--coverage -fno-inline" make test
NUMPROC=2 CMAKE_CXX_FLAGS="--coverage -fno-inline" CMAKE_EXE_LINKER_FLAGS="-lgcov --coverage" make test
- name: Run coverage
run: |
lcov -c -d debug -o coverage.info