Right-size CI runners to reduce waste and shuffle build order to avoid OOM

libeigen/eigen!2367

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-03-31 19:10:34 -07:00
parent b54640df19
commit 1df89cbc21
5 changed files with 82 additions and 6 deletions

View File

@@ -13,11 +13,16 @@ elif [[ ${EIGEN_CI_CTEST_LABEL} ]]; then
target="-L ${EIGEN_CI_CTEST_LABEL}"
fi
exclude=""
if [[ -n "${EIGEN_CI_CTEST_EXCLUDE}" ]]; then
exclude="-E ${EIGEN_CI_CTEST_EXCLUDE}"
fi
set +x
EIGEN_CI_CTEST_PARALLEL=${EIGEN_CI_CTEST_PARALLEL:-${NPROC}}
EIGEN_CI_CTEST_REPEAT=${EIGEN_CI_CTEST_REPEAT:-3}
ctest_cmd="ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${EIGEN_CI_CTEST_PARALLEL} --output-on-failure --no-compress-output --build-noclean ${target}"
ctest_cmd="ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${EIGEN_CI_CTEST_PARALLEL} --output-on-failure --no-compress-output --build-noclean ${target} ${exclude}"
echo "Running initial tests..."
if ${ctest_cmd} -T test; then