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:
committed by
Mohammad Nejati
parent
97d6ddb730
commit
751cb8ab2d
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user