-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (34 loc) · 1.34 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
variables:
GIT_SUBMODULE_STRATEGY: normal
stages:
- build
build_job:
stage: build
script:
- module purge
- source /scratchm/bberthou/dist/spack_dist/spack/share/spack/setup-env.sh
- module load $CMAKE_MODULE $CXX_MODULE_COMPILER
- if [[ $CMAKE_ENABLE_MPI == ON ]]; then
- if [[ $CXX_MODULE_COMPILER == gcc* ]]; then
- module load openmpi-4.0.5-gcc-11.1.0-yshu2sh
- fi
- if [[ $CXX_MODULE_COMPILER == intel* ]]; then
- module load impi/19
- fi
- fi
- mkdir -p build && cd build
- cmake ../ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_CXX_FLAGS="-Wall -fmax-errors=4" -DCMAKE_CXX_FLAGS_RELEASE="-O3 -march=native -DNDEBUG" -DSTD_E_ENABLE_COVERAGE=OFF -DSTD_E_BUILD_DOCUMENTATION=OFF -DSTD_E_ENABLE_MPI=$CMAKE_ENABLE_MPI -DSTD_E_ENABLE_CPP20=$CMAKE_ENABLE_CPP20
- make -j4
- ctest -V
parallel:
matrix:
- CXX_MODULE_COMPILER: ["gcc/8.3","intel/19.1.1.217"]
CMAKE_BUILD_TYPE: ["Release","Debug"]
CMAKE_MODULE: ["cmake/3.19-gnu"]
CMAKE_ENABLE_MPI: ["ON","OFF"]
CMAKE_ENABLE_CPP20: ["OFF"]
- CXX_MODULE_COMPILER: ["gcc-11.1.0-gcc-10.2.0-p4dq6q7"]
CMAKE_BUILD_TYPE: ["Release","Debug"]
CMAKE_MODULE: ["cmake-3.20.1-gcc-11.1.0-s3wvk7v"]
CMAKE_ENABLE_MPI: ["ON"]
CMAKE_ENABLE_CPP20: ["ON"]