Add debug mode configuration to CI

This commit is contained in:
William F Godoy 2022-01-11 17:40:16 -05:00
parent 28b8ba78fc
commit bfc4befb7d
2 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,7 @@ jobs:
matrix:
jobname:
[
GCC9-NoMPI-Debug-Real,
GCC9-MPI-Gcov-Real,
GCC9-MPI-Gcov-Complex,
GCC11-NoMPI-Werror-Real,
@ -30,6 +31,11 @@ jobs:
Clang12-NoMPI-Offload-Real,
]
include:
- jobname: GCC9-NoMPI-Debug-Real
container:
image: williamfgc/qmcpack-ci:ubuntu20-openmpi
options: -u 1001
- jobname: GCC9-MPI-Gcov-Real
container:
image: williamfgc/qmcpack-ci:ubuntu20-openmpi

View File

@ -59,6 +59,15 @@ case "$1" in
esac
case "${GH_JOBNAME}" in
*"GCC9-NoMPI-Debug-"*)
echo 'Configure for debug mode to capture asserts with gcc'
cmake -GNinja \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DQMC_MPI=0 \
-DCMAKE_BUILD_TYPE=Debug \
${GITHUB_WORKSPACE}
;;
*"GCC9-MPI-Gcov-"*)
echo 'Configure for code coverage with gcc and gcovr -DENABLE_GCOV=TRUE and upload reports to Codecov'
cmake -GNinja \