File tree Expand file tree Collapse file tree 6 files changed +14
-10
lines changed
Expand file tree Collapse file tree 6 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 6666
6767 - name : Cache Build
6868 id : cache-build
69- uses : actions/cache@v4.0.2
69+ uses : actions/cache@v4
7070 with :
7171 path : ${{ env.CACHE_PATH }}
7272 key : ${{ runner.os }}-${{ matrix.config }}-cache
Original file line number Diff line number Diff line change 3535
3636 - name : Cache Build
3737 id : cache-build
38- uses : actions/cache@v4.0.2
38+ uses : actions/cache@v4
3939 with :
4040 path : ${{ env.CACHE_PATH }}
4141 key : coverage-cache
6464 run : |
6565 cd build
6666 ctest --verbose -j ${{ steps.cpu-cores.outputs.count }}
67- lcov --directory . --capture --output-file coverage.info
68- lcov --remove coverage.info '/usr/*' "$HOME/.cache/*" "*tests/*" --output-file coverage.info
67+ lcov --directory . --capture --output-file coverage.info --ignore-errors inconsistent,format,gcov
68+ lcov --remove coverage.info --ignore-errors unused '/usr/*' "$HOME/.cache/*" "*tests/*" --output-file coverage.info
6969
7070 - name : Upload coverage reports to Codecov
7171 uses : codecov/codecov-action@v3.1.6
Original file line number Diff line number Diff line change 3636 run : |
3737 sudo apt-get install ccache
3838 echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
39-
39+
4040 - name : cuda-toolkit
4141 uses : Jimver/cuda-toolkit@v0.2.21
4242 with :
4949
5050 - name : Cache Build
5151 id : cache-build
52- uses : actions/cache@v4.0.2
52+ uses : actions/cache@v4
5353 with :
5454 path : ${{ env.CACHE_PATH }}
5555 key : ${{ runner.os }}-${{ matrix.config }}-cache
Original file line number Diff line number Diff line change 3131
3232 - name : Cache Build
3333 id : cache-build
34- uses : actions/cache@v4.0.2
34+ uses : actions/cache@v4
3535 with :
3636 path : ${{ env.CACHE_PATH }}
3737 key : docs-cache
Original file line number Diff line number Diff line change 6262
6363 - name : Cache Build
6464 id : cache-build
65- uses : actions/cache@v4.0.2
65+ uses : actions/cache@v4
6666 with :
6767 path : ${{ env.CACHE_PATH }}
6868 key : ${{ runner.os }}-Python${{ matrix.python-version }}-cache
Original file line number Diff line number Diff line change @@ -255,11 +255,15 @@ endif()
255255
256256if (IPC_TOOLKIT_WITH_CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
257257 # Add required flags (GCC & LLVM/Clang)
258- target_compile_options (ipc_toolkit PUBLIC
258+ target_compile_options (ipc_toolkit PRIVATE
259259 -g # generate debug info
260260 --coverage # sets all required flags
261+ -fprofile-update=atomic
262+ )
263+ target_link_options (ipc_toolkit PUBLIC
264+ --coverage
265+ -fprofile-update=atomic
261266 )
262- target_link_options (ipc_toolkit PUBLIC --coverage)
263267endif ()
264268
265269################################################################################
You can’t perform that action at this time.
0 commit comments