Skip to content

Commit

Permalink
Test VERY_SHORT_TESTS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Apr 11, 2024
1 parent 63c065a commit 131baf8
Showing 1 changed file with 160 additions and 160 deletions.
320 changes: 160 additions & 160 deletions .github/workflows/main-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,111 +40,111 @@ jobs:
vtk: [off]
int: [int32_t]

#include:
# # test vtk only without scotch and with delaunay insertion (more
# # tests are useless)
# - os: ubuntu-20.04
# pattern: off
# pointmap: off
# scotch: off
# vtk: on
# int: int32_t
#
# - os: macos-12
# pattern: off
# pointmap: off
# scotch: off
# vtk: on
# int: int32_t
#
# # Test pointmap with scotch except on windows
# - os: ubuntu-20.04
# pattern: off
# pointmap: on
# scotch: on
# vtk: off
# int: int32_t
#
# - os: macos-12
# pattern: off
# pointmap: on
# scotch: on
# vtk: off
# int: int32_t
#
# # Add windows basic test (matrix is not testable as dependencies
# # don't build with MSVC)
# - os: windows-2022
# pattern: off
# pointmap: off
# scotch: off
# vtk: off
# int: int32_t
#
# - os: windows-2022
# pattern: on
# pointmap: off
# scotch: off
# vtk: off
# int: int32_t
#
# # Add test for pointmap only if pattern off
# - os: windows-2022
# pattern: off
# pointmap: on
# scotch: off
# vtk: off
# int: int32_t
#
# # Test int64_t build on all archi, and try to cover all code
# - os: ubuntu-20.04
# pattern: on
# pointmap: on
# scotch: on
# vtk: on
# int: int64_t
#
# - os: ubuntu-20.04
# pattern: off
# pointmap: off
# scotch: on
# vtk: on
# int: int64_t
#
# - os: ubuntu-20.04
# pattern: off
# pointmap: off
# scotch: off
# vtk: off
# int: int64_t
#
# - os: macos-12
# pattern: on
# pointmap: on
# scotch: on
# vtk: on
# int: int64_t
#
# - os: macos-12
# pattern: off
# pointmap: off
# scotch: off
# vtk: off
# int: int64_t
#
# - os: windows-2022
# pattern: on
# pointmap: on
# scotch: off
# vtk: off
# int: int64_t
#
# - os: windows-2022
# pattern: off
# pointmap: off
# scotch: off
# vtk: off
# int: int64_t
include:
# test vtk only without scotch and with delaunay insertion (more
# tests are useless)
- os: ubuntu-20.04
pattern: off
pointmap: off
scotch: off
vtk: on
int: int32_t

- os: macos-12
pattern: off
pointmap: off
scotch: off
vtk: on
int: int32_t

# Test pointmap with scotch except on windows
- os: ubuntu-20.04
pattern: off
pointmap: on
scotch: on
vtk: off
int: int32_t

- os: macos-12
pattern: off
pointmap: on
scotch: on
vtk: off
int: int32_t

# Add windows basic test (matrix is not testable as dependencies
# don't build with MSVC)
- os: windows-2022
pattern: off
pointmap: off
scotch: off
vtk: off
int: int32_t

- os: windows-2022
pattern: on
pointmap: off
scotch: off
vtk: off
int: int32_t

# Add test for pointmap only if pattern off
- os: windows-2022
pattern: off
pointmap: on
scotch: off
vtk: off
int: int32_t

# Test int64_t build on all archi, and try to cover all code
- os: ubuntu-20.04
pattern: on
pointmap: on
scotch: on
vtk: on
int: int64_t

- os: ubuntu-20.04
pattern: off
pointmap: off
scotch: on
vtk: on
int: int64_t

- os: ubuntu-20.04
pattern: off
pointmap: off
scotch: off
vtk: off
int: int64_t

- os: macos-12
pattern: on
pointmap: on
scotch: on
vtk: on
int: int64_t

- os: macos-12
pattern: off
pointmap: off
scotch: off
vtk: off
int: int64_t

- os: windows-2022
pattern: on
pointmap: on
scotch: off
vtk: off
int: int64_t

- os: windows-2022
pattern: off
pointmap: off
scotch: off
vtk: off
int: int64_t

steps:
- name: Set cmake_build_type and export coverage flags
Expand Down Expand Up @@ -202,19 +202,6 @@ jobs:
run: |
echo "CMAKE_C_FLG=-DCMAKE_C_FLAGS=\"${{ env.C_FLG }} ${{ env.C_FLG_PROF }}\"" >> "$GITHUB_ENV"
# checkout the provided branch name if workflow is manually run
- uses: actions/checkout@v3
if: inputs.branch_name
with:
ref: ${{github.event.inputs.branch}}
path: mmg

# checkout the event branch for automatic workflows
- uses: actions/checkout@v3
if: inputs.branch_name == ''
with:
path: mmg

- name: Install VTK
# Download vtk only if used
if: matrix.vtk == 'on'
Expand Down Expand Up @@ -261,48 +248,61 @@ jobs:
cmake ..
make install
#name: Test compilation with shared libs linkage
#run: |
# cmake -Smmg -Bbuild_shared \
# ${{ env.CMAKE_C_FLG }} \
# ${{ env.FORT_FLG }} \
# -DCI_CONTEXT=ON \
# -DBUILD_TESTING=ON \
# -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
# -DMMG_PATTERN=${{ matrix.pattern }} \
# -DUSE_SCOTCH=${{ matrix.scotch }} \
# -DSCOTCH_DIR=scotch-install \
# -DUSE_VTK=${{ matrix.vtk }} \
# -DMMG5_INT=${{ matrix.int }} \
# -DBUILD_SHARED_LIBS=ON \
# -DTEST_LIBMMG=ON \
# -DTEST_LIBMMGS=ON \
# -DTEST_LIBMMG2D=ON \
# -DTEST_LIBMMG3D=ON \
# ${{ inputs.add_cmake_cfg_args }}
# cmake --build build_shared --config ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }}
#shell: bash
#
#name: Test compilation without library linkage
#run: |
# cmake -Smmg -Bbuild_nolibs \
# ${{ env.CMAKE_C_FLG }} \
# ${{ env.FORT_FLG }} \
# -DCI_CONTEXT=ON \
# -DBUILD_TESTING=ON \
# -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
# -DMMG_PATTERN=${{ matrix.pattern }} \
# -DUSE_SCOTCH=${{ matrix.scotch }} \
# -DSCOTCH_DIR=scotch-install \
# -DUSE_VTK=${{ matrix.vtk }} \
# -DMMG5_INT=${{ matrix.int }} \
# -DLIBMMG_STATIC=OFF \
# -DLIBMMGS_STATIC=OFF \
# -DLIBMMG2D_STATIC=OFF \
# -DLIBMMG3D_STATIC=OFF \
# ${{ inputs.add_cmake_cfg_args }}
# cmake --build build_nolibs --config ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }}
#shell: bash
# checkout the provided branch name if workflow is manually run
- uses: actions/checkout@v3
if: inputs.branch_name
with:
ref: ${{github.event.inputs.branch}}
path: mmg

# checkout the event branch for automatic workflows
- uses: actions/checkout@v3
if: inputs.branch_name == ''
with:
path: mmg

- name: Test compilation with shared libs linkage
run: |
cmake -Smmg -Bbuild_shared \
${{ env.CMAKE_C_FLG }} \
${{ env.FORT_FLG }} \
-DCI_CONTEXT=ON \
-DBUILD_TESTING=ON \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DMMG_PATTERN=${{ matrix.pattern }} \
-DUSE_SCOTCH=${{ matrix.scotch }} \
-DSCOTCH_DIR=scotch-install \
-DUSE_VTK=${{ matrix.vtk }} \
-DMMG5_INT=${{ matrix.int }} \
-DBUILD_SHARED_LIBS=ON \
-DTEST_LIBMMG=ON \
-DTEST_LIBMMGS=ON \
-DTEST_LIBMMG2D=ON \
-DTEST_LIBMMG3D=ON \
${{ inputs.add_cmake_cfg_args }}
cmake --build build_shared --config ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }}
shell: bash

- name: Test compilation without library linkage
run: |
cmake -Smmg -Bbuild_nolibs \
${{ env.CMAKE_C_FLG }} \
${{ env.FORT_FLG }} \
-DCI_CONTEXT=ON \
-DBUILD_TESTING=ON \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DMMG_PATTERN=${{ matrix.pattern }} \
-DUSE_SCOTCH=${{ matrix.scotch }} \
-DSCOTCH_DIR=scotch-install \
-DUSE_VTK=${{ matrix.vtk }} \
-DMMG5_INT=${{ matrix.int }} \
-DLIBMMG_STATIC=OFF \
-DLIBMMGS_STATIC=OFF \
-DLIBMMG2D_STATIC=OFF \
-DLIBMMG3D_STATIC=OFF \
${{ inputs.add_cmake_cfg_args }}
cmake --build build_nolibs --config ${{ env.BUILD_TYPE }} -j ${{ env.NJOBS }}
shell: bash

- name: Configure Mmg with static libs (default behaviour)
run: |
Expand Down

0 comments on commit 131baf8

Please sign in to comment.