chore: Need Debug to generate coverage
This commit is contained in:
parent
17d141a8b2
commit
ae2bd6aa47
|
|
@ -7,10 +7,9 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Debug
|
||||||
GENERATE_COVERAGE: true
|
GENERATE_COVERAGE: true
|
||||||
LCOV_ROOT: ${{github.workspace}}/lcov
|
LCOV_ROOT: ${{github.workspace}}/lcov
|
||||||
GCOV: gcov-4.8
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -32,10 +31,6 @@ jobs:
|
||||||
tar -xf "$LCOV_ROOT/lcov.tar.gz" --strip-components=1 -C "$LCOV_ROOT"
|
tar -xf "$LCOV_ROOT/lcov.tar.gz" --strip-components=1 -C "$LCOV_ROOT"
|
||||||
echo "$LCOV_ROOT/bin" >> $GITHUB_PATH
|
echo "$LCOV_ROOT/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Info
|
|
||||||
run: |
|
|
||||||
lcov --version
|
|
||||||
gcov --version
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
|
|
@ -53,6 +48,8 @@ jobs:
|
||||||
- name: Prune external code coverage
|
- name: Prune external code coverage
|
||||||
run: rm -rf ./external/google-test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.gcda
|
run: rm -rf ./external/google-test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.gcda
|
||||||
|
|
||||||
|
- name: Inspect
|
||||||
|
|
||||||
- name: Generate code coverage report
|
- name: Generate code coverage report
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue