2
0
mirror of https://github.com/boostorg/beast.git synced 2026-01-19 04:02:10 +00:00

ci: limit parallel jobs in Drone

This commit is contained in:
Mohammad Nejati
2025-10-03 11:24:08 +00:00
committed by Mohammad Nejati
parent 97d6ddb730
commit 751cb8ab2d
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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)