Skip to content

Commit

Permalink
dbg 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Apr 11, 2024
1 parent ff0f944 commit f1d8069
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,14 @@ jobs:
steps:
- name: Set cmake_build_type and export coverage flags
run: |
if ${{ matrix.os == 'ubuntu-20.04' && inputs.code_coverage == true }}; then
if ${{ matrix.os == 'ubuntu-20.04' }}; then
# if code coverage is enabled, linux build is runned in Debug mode
if [[ ${{ inputs.cmake_build_type }} != Debug ]]; then
echo "WARNING: build type is forced to debug mode on ubuntu to allow coverage."
fi
echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV"
echo "C_FLG_PROF=-fprofile-arcs -ftest-coverage" >> "$GITHUB_ENV"
else
echo "BUILD_TYPE=${{ inputs.cmake_build_type }}" >> "$GITHUB_ENV"
echo "BUILD_TYPE=RelWithDebInfo" >> "$GITHUB_ENV"
fi
shell: bash
Expand Down

0 comments on commit f1d8069

Please sign in to comment.