Tools: ci: use number of CPUs to choose number of jobs on Make builds

This commit is contained in:
Francisco Ferreira 2017-08-25 01:55:01 +01:00
parent c073263c8d
commit aa6b997a0b
No known key found for this signature in database
GPG Key ID: F63C20A6773E787E

View File

@ -74,7 +74,7 @@ for t in $CI_BUILD_TARGET; do
fi
start_time=$(get_time)
CCACHE_DISABLE="true" make $t -j2
CCACHE_DISABLE="true" make $t -j$(nproc)
diff_time=$(($(get_time)-$start_time))
echo -e "\033[32m'make' finished successfully (${diff_time}s)\033[0m"
popd