From f06bda5ae543aedcb0e76d0678f68f2ada6f6db6 Mon Sep 17 00:00:00 2001 From: Algiane Froehly Date: Thu, 11 Apr 2024 16:39:53 +0200 Subject: [PATCH] dbg 3. --- .github/workflows/code-cov.yml | 51 ++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/.github/workflows/code-cov.yml b/.github/workflows/code-cov.yml index accd3599b..3d0ab1c71 100644 --- a/.github/workflows/code-cov.yml +++ b/.github/workflows/code-cov.yml @@ -8,7 +8,7 @@ on: types: [opened, synchronize] jobs: - coverage: + ci: if: "! contains(github.event.head_commit.message, '[skip ci]')" runs-on: ${{ matrix.os }} @@ -286,15 +286,15 @@ jobs: - name: Configure Mmg with static libs (default behaviour) run: | cmake -Smmg -Bbuild \ - -DCMAKE_C_FLAGS="-fprofile-arcs -ftest-coverage" \ - -DCMAKE_Fortran_COMPILER=gfortran-9 \ + ${{ env.CMAKE_C_FLG }} \ + ${{ env.FORT_FLG }} \ -DCMAKE_INSTALL_PREFIX=mmg-install \ -DCI_CONTEXT=ON \ -DBUILD_TESTING=ON \ - -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ -DMMG_PATTERN=${{ matrix.pattern }} \ -DUSE_SCOTCH=${{ matrix.scotch }} \ - -DSCOTCH_DIR=scotch \ + -DSCOTCH_DIR=scotch-install \ -DUSE_VTK=${{ matrix.vtk }} \ -DMMG5_INT=${{ matrix.int }} \ -DTEST_LIBMMG=ON \ @@ -306,22 +306,45 @@ jobs: - name: Build Mmg run: | - cmake --build build --config Debug -j 4 - + cmake --build build --config ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }} - name: Install Mmg run: | - cmake --build build --target install --config Debug -j 4 + cmake --build build --target install --config ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }} + + #- name: Archive production artifacts + # uses: actions/upload-artifact@v3 + # with: + # name: Mmg-bin + # path: | + # build/bin - - name: Test Mmg + - name: Test Mmg with in32_t integers + # Run long tests only with vtk off and int32_t integers + if: matrix.vtk == 'off' && matrix.int == 'int32_t' run: | cd build - ctest --timeout 7200 -VV -C Debug -j 4 - env: - NJOBS: "2" + ctest --timeout 7200 -N -VV -C ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }} + + - name: Test Mmg with in64_t integers + # Run long tests only on ubuntu with pattern off, scotch on, vtk on and int64_t integers + if: matrix.os == 'ubuntu-20.04' && matrix.pattern == 'off' && matrix.scotch == 'on' && matrix.vtk == 'on' && matrix.int == 'int64_t' + run: | + cd build + ctest --timeout 7200 -N -VV -C ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }} - - name: Test Mmg + - name: Test non native I/Os of Mmg + if: matrix.vtk == 'on' run: | - echo "BUILD_TYPE=Debug" >> "$GITHUB_ENV" + cd build + ctest -R "msh|vtk" -VV -C ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }} + + #- name: Archive production artifacts for tests + # if: success() || failure() + # uses: actions/upload-artifact@v2 + # with: + # name: Mmg-tests + # path: | + # build/TEST_OUTPUTS - name: Upload coverage to Codecov #if: inputs.CODE_COVERAGE