1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-21 00:32:01 +01:00

CI scripts expose number of build tasks

This commit is contained in:
2021-11-16 21:35:35 +00:00
parent 9341a31cf4
commit d6e5ba724d
6 changed files with 26 additions and 20 deletions

View File

@ -2,11 +2,12 @@
NAME='2.6.1'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix>" 1>&2
if (( $# != 2 )); then
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
exit 1
fi
PREFIX=$1
NTASKS=$2
set -ex
INITDIR=$(pwd -P)
@ -20,7 +21,7 @@ NAME=nlopt-${NAME}
mkdir -p ${NAME}/build
cd ${NAME}/build
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=TRUE -DCMAKE_INSTALL_NAME_DIR="${PREFIX}/lib" ..
make -j4
make -j${NTASKS}
make install
cd ${INITDIR}/local
touch .built.nlopt