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 f1d8069 commit 29b11a7
Showing 1 changed file with 89 additions and 1 deletion.
90 changes: 89 additions & 1 deletion .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
os: [ubuntu-20.04] #,macos-12]
pattern: [on,off]
pointmap: [off]
scotch: [on,off]
scotch: [off]
vtk: [off]
int: [int32_t]

Expand Down Expand Up @@ -194,6 +194,94 @@ jobs:
with:
path: mmg

- name: Install VTK
# Download vtk only if used
if: matrix.vtk == 'on'
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install vtk
elif [ "$RUNNER_OS" == "Linux" ]; then
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y libvtk7-dev
fi
- name: Install Sctoch
# Download scotch only if used
if: matrix.scotch == 'on'
run: |
git clone https://gitlab.inria.fr/scotch/scotch.git
cd scotch
git checkout v6.1.3
cd src
cp ${{ env.SCOTCH_MAKE }} Makefile.inc
make scotch -j ${{ env.NJOBS }}
make prefix=../../scotch-install install -j ${{ env.NJOBS }}
- name: Install LibCommons
# LinearElasticity don't build with MSVC
if: runner.os != 'windows'
run: |
git clone https://github.com/ISCDtoolbox/Commons.git
cd Commons
mkdir build
cd build
cmake ..
make install
- name: Install LinearElasticity
# LinearElasticity don't build with MSVC
if: runner.os != 'windows'
run: |
git clone https://github.com/ISCDtoolbox/LinearElasticity.git
cd LinearElasticity
mkdir build
cd build
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

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

0 comments on commit 29b11a7

Please sign in to comment.