From 751cb8ab2d9792d1f98d33532522820d87898009 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Fri, 3 Oct 2025 11:24:08 +0000 Subject: [PATCH] ci: limit parallel jobs in Drone --- .drone/drone.sh | 2 ++ tools/build-and-test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone/drone.sh b/.drone/drone.sh index 820a28ab..e2c1371c 100755 --- a/.drone/drone.sh +++ b/.drone/drone.sh @@ -174,6 +174,8 @@ if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then echo '==================================> SCRIPT' + export B2_JOBS=4 + # export B2_TARGETS=${B2_TARGETS:-"libs/$SELF/test libs/$SELF/example"} if [ -n "$COMPILER" ] && [ -n "$B2_TOOLSET" ]; then echo "using $B2_TOOLSET : : $COMPILER ;" >> ~/user-config.jam diff --git a/tools/build-and-test.sh b/tools/build-and-test.sh index 64348255..b10d6be4 100755 --- a/tools/build-and-test.sh +++ b/tools/build-and-test.sh @@ -23,7 +23,7 @@ elif [[ "${TRAVIS}" == "true" ]]; then JOBS="2" elif [[ $(uname -s) == "Linux" ]]; then # Physical cores - JOBS=$(lscpu -p | grep -v '^#' | sort -u -t, -k 2,4 | wc -l) + JOBS=4 elif [[ $(uname) == "Darwin" ]]; then # Physical cores JOBS=$(sysctl -n hw.physicalcpu)