Skip to content

Commit

Permalink
Add debug mode configuration to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfgc committed Jan 11, 2022
1 parent 28b8ba7 commit bfc4bef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
matrix:
jobname:
[
GCC9-NoMPI-Debug-Real,
GCC9-MPI-Gcov-Real,
GCC9-MPI-Gcov-Complex,
GCC11-NoMPI-Werror-Real,
Expand All @@ -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
Expand Down
9 changes: 9 additions & 0 deletions tests/test_automation/github-actions/ci/run_step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit bfc4bef

Please sign in to comment.