mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 08:55:37 +00:00
CI scripts expose number of build tasks
This commit is contained in:
parent
9341a31cf4
commit
d6e5ba724d
@ -1,15 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if (( $# != 1 )); then
|
if (( $# != 2 )); then
|
||||||
echo "usage: `basename $0` <prefix>" 1>&2
|
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
NTASKS=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p local/build
|
mkdir -p local/build
|
||||||
for d in gsl nlopt minuit hdf5; do
|
for d in gsl nlopt minuit hdf5; do
|
||||||
if [ ! -e local/.built.${d} ]; then
|
if [ ! -e local/.built.${d} ]; then
|
||||||
./install-${d}.sh ${PREFIX}
|
./install-${d}.sh ${PREFIX} ${NTASKS}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
NAME='gsl-2.6'
|
NAME='gsl-2.6'
|
||||||
|
|
||||||
if (( $# != 1 )); then
|
if (( $# != 2 )); then
|
||||||
echo "usage: `basename $0` <prefix>" 1>&2
|
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
NTASKS=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
INITDIR=$(pwd -P)
|
||||||
@ -19,7 +20,7 @@ tar -xzvf ${NAME}.tar.gz
|
|||||||
mkdir -p ${NAME}/build
|
mkdir -p ${NAME}/build
|
||||||
cd ${NAME}/build
|
cd ${NAME}/build
|
||||||
../configure --prefix=${PREFIX}
|
../configure --prefix=${PREFIX}
|
||||||
make -j4
|
make -j${NTASKS}
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd ${INITDIR}/local
|
||||||
touch .built.gsl
|
touch .built.gsl
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
NAME='hdf5-1.10.5'
|
NAME='hdf5-1.10.5'
|
||||||
|
|
||||||
if (( $# != 1 )); then
|
if (( $# != 2 )); then
|
||||||
echo "usage: `basename $0` <prefix>" 1>&2
|
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
NTASKS=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
INITDIR=$(pwd -P)
|
||||||
@ -19,7 +20,7 @@ tar -xzvf ${NAME}.tar.gz
|
|||||||
mkdir ${NAME}/build
|
mkdir ${NAME}/build
|
||||||
cd ${NAME}/build
|
cd ${NAME}/build
|
||||||
../configure --prefix=${PREFIX} --enable-cxx
|
../configure --prefix=${PREFIX} --enable-cxx
|
||||||
make -j4
|
make -j${NTASKS}
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd ${INITDIR}/local
|
||||||
touch .built.hdf5
|
touch .built.hdf5
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if (( $# != 1 )); then
|
if (( $# != 2 )); then
|
||||||
echo "usage: `basename $0` <prefix>" 1>&2
|
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
NTASKS=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
INITDIR=$(pwd -P)
|
||||||
@ -12,11 +13,11 @@ mkdir -p ${PREFIX}
|
|||||||
cd ${PREFIX}
|
cd ${PREFIX}
|
||||||
PREFIX=$(pwd -P)
|
PREFIX=$(pwd -P)
|
||||||
cd ${INITDIR}
|
cd ${INITDIR}
|
||||||
./install-deps.sh ${PREFIX}
|
./install-deps.sh ${PREFIX} ${NTASKS}
|
||||||
cd ..
|
cd ..
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd 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"
|
../configure --prefix=${PREFIX} --with-minuit=${PREFIX} --with-nlopt=${PREFIX} --with-hdf5=${PREFIX} --with-gsl=${PREFIX} CXXFLAGS="${CXXFLAGS} -O3 -march=native -mtune=native"
|
||||||
make -j4
|
make -j${NTASKS}
|
||||||
make install
|
make install
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
if (( $# != 1 )); then
|
if (( $# != 2 )); then
|
||||||
echo "usage: `basename $0` <prefix>" 1>&2
|
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
NTASKS=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
INITDIR=$(pwd -P)
|
||||||
@ -18,7 +19,7 @@ git clone https://github.com/root-project/root.git
|
|||||||
cd root/math/minuit2/
|
cd root/math/minuit2/
|
||||||
mkdir build; cd build
|
mkdir build; cd build
|
||||||
cmake .. -Dminuit2_standalone=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
|
cmake .. -Dminuit2_standalone=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
|
||||||
make -j4
|
make -j${NTASKS}
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd ${INITDIR}/local
|
||||||
touch .built.minuit
|
touch .built.minuit
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
NAME='2.6.1'
|
NAME='2.6.1'
|
||||||
|
|
||||||
if (( $# != 1 )); then
|
if (( $# != 2 )); then
|
||||||
echo "usage: `basename $0` <prefix>" 1>&2
|
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
PREFIX=$1
|
||||||
|
NTASKS=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
INITDIR=$(pwd -P)
|
||||||
@ -20,7 +21,7 @@ NAME=nlopt-${NAME}
|
|||||||
mkdir -p ${NAME}/build
|
mkdir -p ${NAME}/build
|
||||||
cd ${NAME}/build
|
cd ${NAME}/build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=TRUE -DCMAKE_INSTALL_NAME_DIR="${PREFIX}/lib" ..
|
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
|
make install
|
||||||
cd ${INITDIR}/local
|
cd ${INITDIR}/local
|
||||||
touch .built.nlopt
|
touch .built.nlopt
|
||||||
|
Loading…
Reference in New Issue
Block a user