diff --git a/tests/test_automation/github-actions/ci/run_step.sh b/tests/test_automation/github-actions/ci/run_step.sh index fd68dfa8d4..7a93ed4155 100755 --- a/tests/test_automation/github-actions/ci/run_step.sh +++ b/tests/test_automation/github-actions/ci/run_step.sh @@ -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