ci: Use multiple cores in docker tests (#1128)

This seems to bring current docker build times in the cmake branch from
4-6 minutes down to 3-4 minutes.
This commit is contained in:
Joey Parrish 2022-11-03 07:21:14 -07:00 committed by GitHub
parent 7b33f2065f
commit dccefb1385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -85,9 +85,9 @@ for DOCKER_FILE in ${SCRIPT_DIR}/dockers/*; do
RAN_SOMETHING=1 RAN_SOMETHING=1
docker build -t ${CONTAINER} -f ${DOCKER_FILE} ${SCRIPT_DIR}/dockers/ docker build -t ${CONTAINER} -f ${DOCKER_FILE} ${SCRIPT_DIR}/dockers/
mkdir -p "${TEMP_BUILD_DIR}" mkdir -p "${TEMP_BUILD_DIR}"
docker_run cmake -S . -B build/ docker_run cmake -S . -B build/ -DCMAKE_BUILD_TYPE=Debug
docker_run make -C build/ docker_run cmake --build build/ --config Debug --parallel
docker_run bash -c "cd build && ctest -V" docker_run bash -c "cd build && ctest -C Debug -V"
rm -rf "${TEMP_BUILD_DIR}" rm -rf "${TEMP_BUILD_DIR}"
done done