|
64 | 64 | sha256sum ${{ env.PROJECT_NAME }}.zip | awk '{ print $1; }' > ${{ github.workspace }}/${{ env.PROJECT_NAME }}.zip.sha256.txt |
65 | 65 | if: matrix.os == 'ubuntu-20.04' |
66 | 66 |
|
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 | | - |
79 | 67 | - name: Compile on Linux (release) |
80 | 68 | env: |
81 | 69 | CC: ${{ matrix.compiler }} |
|
86 | 74 | cd build |
87 | 75 | cmake -DCMAKE_BUILD_TYPE=Release -DPython_EXECUTABLE=$(which python3) -DPPP_VERSION_NAME=${{ env.PROJECT_VERSION }} .. -Wno-dev |
88 | 76 | 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' |
90 | 78 |
|
91 | 79 | - name: package and installation on Ubuntu |
92 | 80 | working-directory: ${{ github.workspace }}/build |
@@ -178,6 +166,19 @@ jobs: |
178 | 166 | # https://github.com/ukaea/parallel-preprocessor/releases/download/dev/parallel-preprocessor.zip |
179 | 167 |
|
180 | 168 | ########################################## 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 | + |
181 | 182 | - name: Run Cpp Check Flawfinder Sim C++ ( Ubuntu GCC Dev/Master ) |
182 | 183 | working-directory: ${{ github.workspace }} |
183 | 184 | run: | |
|
0 commit comments