Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

################################################################################
Expand Down