Allow to limit number of cores used for compilation
失敗したステータスチェックがあります
ci/woodpecker/push/build Pipeline failed

このコミットが含まれているのは:
2022-07-23 16:53:39 +02:00
コミット bfa6974cfc
2個のファイルの変更6行の追加4行の削除

ファイルの表示

@@ -2,4 +2,4 @@ pipeline:
build:
image: codingworkshop/oscw-runner:latest
commands:
- ./build-linux.sh
- CORES=8 ./build-linux.sh

ファイルの表示

@@ -508,9 +508,11 @@ xtchain_build()
set -e
# Check number of CPU cores available
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
: ${CORES:=$(nproc 2>/dev/null)}
: ${CORES:=1}
if [[ ! -n ${CORES} ]]; then
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
: ${CORES:=$(nproc 2>/dev/null)}
: ${CORES:=1}
fi
# Create working directories
mkdir -p ${BINDIR}