Reimplement new pipeline and allow limiting number of cores used fo build #3

Merged
belliash merged 8 commits from pipeline into master 2022-07-25 15:21:18 +02:00
Showing only changes of commit 4013b25462 - Show all commits

View File

@ -507,12 +507,6 @@ xtchain_build()
# Exit immediately on any failure
set -e
# Check if script launched as root
if [ "$(whoami)" = "root" ]; then
echo "This script cannot be run as root!"
exit 1
fi
# Check number of CPU cores available
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
: ${CORES:=$(nproc 2>/dev/null)}