diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 335f12c3f..ec98e3e01 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -66,7 +66,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: ${{ runner.os }}-${{ matrix.config }}-cache diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 303121df6..a51ee5255 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -35,7 +35,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: coverage-cache @@ -64,8 +64,8 @@ jobs: run: | cd build ctest --verbose -j ${{ steps.cpu-cores.outputs.count }} - lcov --directory . --capture --output-file coverage.info - lcov --remove coverage.info '/usr/*' "$HOME/.cache/*" "*tests/*" --output-file coverage.info + lcov --directory . --capture --output-file coverage.info --ignore-errors inconsistent,format,gcov + lcov --remove coverage.info --ignore-errors unused '/usr/*' "$HOME/.cache/*" "*tests/*" --output-file coverage.info - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3.1.6 diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 1eaeeda06..8b742d3dd 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -36,7 +36,7 @@ jobs: run: | sudo apt-get install ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" - + - name: cuda-toolkit uses: Jimver/cuda-toolkit@v0.2.21 with: @@ -49,7 +49,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: ${{ runner.os }}-${{ matrix.config }}-cache diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ed570de7..15e4f5408 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,7 +31,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: docs-cache diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index cea6f5a12..946e544be 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -62,7 +62,7 @@ jobs: - name: Cache Build id: cache-build - uses: actions/cache@v4.0.2 + uses: actions/cache@v4 with: path: ${{ env.CACHE_PATH }} key: ${{ runner.os }}-Python${{ matrix.python-version }}-cache diff --git a/CMakeLists.txt b/CMakeLists.txt index e3d1140db..755d7a030 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,11 +255,15 @@ endif() if(IPC_TOOLKIT_WITH_CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") # Add required flags (GCC & LLVM/Clang) - target_compile_options(ipc_toolkit PUBLIC + target_compile_options(ipc_toolkit PRIVATE -g # generate debug info --coverage # sets all required flags + -fprofile-update=atomic + ) + target_link_options(ipc_toolkit PUBLIC + --coverage + -fprofile-update=atomic ) - target_link_options(ipc_toolkit PUBLIC --coverage) endif() ################################################################################