Skip to content

Commit

Permalink
Merge pull request #3786 from williamfgc/enable-ctest-j-ornl-ci
Browse files Browse the repository at this point in the history
Add ctest -j parallel jobs option to all CI
  • Loading branch information
ye-luo authored Jan 31, 2022
2 parents e331da4 + f501a11 commit d69bce8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/test_automation/github-actions/ci/run_step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,22 @@ case "$1" in
then
source /opt/intel2020/mkl/bin/mklvars.sh intel64
fi

# Add ctest concurrent parallel jobs
# Default for Linux GitHub Action runners
CTEST_JOBS="2"
# Default for macOS GitHub Action runners
if [[ "${GH_OS}" =~ (macOS) ]]
then
CTEST_JOBS="3"
fi

if [[ "$HOST_NAME" =~ (sulfur) || "$HOST_NAME" =~ (nitrogen) ]]
then
CTEST_JOBS="16"
fi

ctest --output-on-failure $TEST_LABEL
ctest --output-on-failure $TEST_LABEL -j $CTEST_JOBS
;;

# Generate coverage reports
Expand Down

0 comments on commit d69bce8

Please sign in to comment.