Skip to content

Commit 064ef35

Browse files
committed
bugfix: remove code-coverage from ubuntu 20.04 deb on release
1 parent 7887837 commit 064ef35

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/github-ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,6 @@ jobs:
6464
sha256sum ${{ env.PROJECT_NAME }}.zip | awk '{ print $1; }' > ${{ github.workspace }}/${{ env.PROJECT_NAME }}.zip.sha256.txt
6565
if: matrix.os == 'ubuntu-20.04'
6666

67-
- name: Compile on Linux (debug)
68-
# env:
69-
# CC: ${{ matrix.compiler }}
70-
# CXX: ${{ matrix.compilerpp }}
71-
run: |
72-
git submodule update --init --recursive
73-
mkdir build
74-
cd build
75-
cmake -DCODE_COVERAGE=ON -DPython_EXECUTABLE=$(which python3) -DPPP_VERSION_NAME=${{ env.PROJECT_VERSION }} .. -Wno-dev
76-
make 2>&1 | tee clang_tidy_build_results.log
77-
if: matrix.os == 'ubuntu-20.04'
78-
7967
- name: Compile on Linux (release)
8068
env:
8169
CC: ${{ matrix.compiler }}
@@ -86,7 +74,7 @@ jobs:
8674
cd build
8775
cmake -DCMAKE_BUILD_TYPE=Release -DPython_EXECUTABLE=$(which python3) -DPPP_VERSION_NAME=${{ env.PROJECT_VERSION }} .. -Wno-dev
8876
make 2>&1 | tee clang_tidy_build_results.log
89-
if: matrix.os == 'ubuntu-18.04'
77+
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
9078

9179
- name: package and installation on Ubuntu
9280
working-directory: ${{ github.workspace }}/build
@@ -178,6 +166,19 @@ jobs:
178166
# https://github.com/ukaea/parallel-preprocessor/releases/download/dev/parallel-preprocessor.zip
179167

180168
########################################## only for Ubuntu debug release ############################################
169+
- name: Re-compile on Linux (debug + coverage)
170+
working-directory: ${{ github.workspace }}
171+
# env:
172+
# CC: ${{ matrix.compiler }}
173+
# CXX: ${{ matrix.compilerpp }}
174+
run: |
175+
rm -rf build
176+
mkdir build
177+
cd build
178+
cmake -DCODE_COVERAGE=ON -DPython_EXECUTABLE=$(which python3) -DPPP_VERSION_NAME=${{ env.PROJECT_VERSION }} .. -Wno-dev
179+
make 2>&1 | tee clang_tidy_build_results.log
180+
if: matrix.os == 'ubuntu-20.04' && ( github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' )
181+
181182
- name: Run Cpp Check Flawfinder Sim C++ ( Ubuntu GCC Dev/Master )
182183
working-directory: ${{ github.workspace }}
183184
run: |

0 commit comments

Comments
 (0)