mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-12-21 00:24:29 +00:00
CI scripts expose number of build tasks
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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)
|
||||
@@ -12,11 +13,11 @@ mkdir -p ${PREFIX}
|
||||
cd ${PREFIX}
|
||||
PREFIX=$(pwd -P)
|
||||
cd ${INITDIR}
|
||||
./install-deps.sh ${PREFIX}
|
||||
./install-deps.sh ${PREFIX} ${NTASKS}
|
||||
cd ..
|
||||
./bootstrap.sh
|
||||
mkdir -p build
|
||||
cd build
|
||||
../configure --prefix=${PREFIX} --with-minuit=${PREFIX} --with-nlopt=${PREFIX} --with-hdf5=${PREFIX} --with-gsl=${PREFIX} CXXFLAGS="${CXXFLAGS} -O3 -march=haswell -mtune=haswell"
|
||||
make -j4
|
||||
../configure --prefix=${PREFIX} --with-minuit=${PREFIX} --with-nlopt=${PREFIX} --with-hdf5=${PREFIX} --with-gsl=${PREFIX} CXXFLAGS="${CXXFLAGS} -O3 -march=native -mtune=native"
|
||||
make -j${NTASKS}
|
||||
make install
|
||||
|
||||
Reference in New Issue
Block a user