mirror of
https://github.com/boostorg/beast.git
synced 2026-08-03 20:14:17 +02: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'
|
echo '==================================> SCRIPT'
|
||||||
|
|
||||||
|
export B2_JOBS=4
|
||||||
|
|
||||||
# export B2_TARGETS=${B2_TARGETS:-"libs/$SELF/test libs/$SELF/example"}
|
# export B2_TARGETS=${B2_TARGETS:-"libs/$SELF/test libs/$SELF/example"}
|
||||||
if [ -n "$COMPILER" ] && [ -n "$B2_TOOLSET" ]; then
|
if [ -n "$COMPILER" ] && [ -n "$B2_TOOLSET" ]; then
|
||||||
echo "using $B2_TOOLSET : : $COMPILER ;" >> ~/user-config.jam
|
echo "using $B2_TOOLSET : : $COMPILER ;" >> ~/user-config.jam
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ elif [[ "${TRAVIS}" == "true" ]]; then
|
|||||||
JOBS="2"
|
JOBS="2"
|
||||||
elif [[ $(uname -s) == "Linux" ]]; then
|
elif [[ $(uname -s) == "Linux" ]]; then
|
||||||
# Physical cores
|
# Physical cores
|
||||||
JOBS=$(lscpu -p | grep -v '^#' | sort -u -t, -k 2,4 | wc -l)
|
JOBS=4
|
||||||
elif [[ $(uname) == "Darwin" ]]; then
|
elif [[ $(uname) == "Darwin" ]]; then
|
||||||
# Physical cores
|
# Physical cores
|
||||||
JOBS=$(sysctl -n hw.physicalcpu)
|
JOBS=$(sysctl -n hw.physicalcpu)
|
||||||
|
|||||||
Reference in New Issue
Block a user