diff --git a/.github/docker_images/cmake_build_versions/cmake_build.sh b/.github/docker_images/cmake_build_versions/cmake_build.sh index 46603a01e3..cc737dcbe3 100755 --- a/.github/docker_images/cmake_build_versions/cmake_build.sh +++ b/.github/docker_images/cmake_build_versions/cmake_build.sh @@ -7,8 +7,10 @@ set -ex -o pipefail echo "Building CMake Version: ${CMAKE_VERSION:-unknown}" +NUM_CPU_THREADS=$(grep -c ^processor /proc/cpuinfo) + # At the moment this works fine for all versions, in the future build logic can be modified to # look at it ${CMAKE_VERSION}. ./configure --prefix=/opt/cmake --system-curl --system-libarchive -make -j +make -j"${NUM_CPU_THREADS}" make install