Reimplement new pipeline and allow limiting number of cores used fo build #3

Yhdistetty
belliash yhdistetty 8 committia lähteestä pipeline kohteeseen master 2022-07-25 15:21:18 +02:00
2 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
Showing only changes of commit bfa6974cfc - Show all commits

Näytä tiedosto

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

Näytä tiedosto

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