Skip to content

Commit

Permalink
dbg 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Apr 11, 2024
1 parent 29b11a7 commit f06bda5
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [opened, synchronize]

jobs:
coverage:
ci:
if: "! contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit f06bda5

Please sign in to comment.