mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
CI scripts update
This commit is contained in:
parent
7d55fc30b5
commit
ccdc54243e
@ -1,16 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if (( $# != 2 )); then
|
if (($# != 2)); then
|
||||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
prefix=$1
|
||||||
NTASKS=$2
|
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} ${NTASKS}
|
./install-${d}.sh "${prefix}" "${ntasks}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
NAME='gsl-2.6'
|
name='gsl-2.6'
|
||||||
|
|
||||||
if (( $# != 2 )); then
|
if (($# != 2)); then
|
||||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
prefix=$1
|
||||||
NTASKS=$2
|
ntasks=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
init_dir=$(pwd -P)
|
||||||
mkdir -p ${PREFIX}
|
mkdir -p "${prefix}"
|
||||||
cd ${PREFIX}
|
cd "${prefix}"
|
||||||
PREFIX=$(pwd -P)
|
prefix=$(pwd -P)
|
||||||
cd ${INITDIR}/local/build
|
cd "${init_dir}/local/build"
|
||||||
wget http://ftpmirror.gnu.org/gsl/${NAME}.tar.gz
|
wget http://ftpmirror.gnu.org/gsl/${name}.tar.gz
|
||||||
tar -xzvf ${NAME}.tar.gz
|
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 -j${NTASKS}
|
make -j"${ntasks}"
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd "${init_dir}/local"
|
||||||
touch .built.gsl
|
touch .built.gsl
|
||||||
cd ${INITDIR}
|
cd "${init_dir}"
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
NAME='hdf5-1.10.8'
|
name='hdf5-1.14.3'
|
||||||
|
|
||||||
if (( $# != 2 )); then
|
if (($# != 2)); then
|
||||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
prefix=$1
|
||||||
NTASKS=$2
|
ntasks=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
init_dir=$(pwd -P)
|
||||||
mkdir -p ${PREFIX}
|
mkdir -p "${prefix}"
|
||||||
cd ${PREFIX}
|
cd "${prefix}"
|
||||||
PREFIX=$(pwd -P)
|
prefix=$(pwd -P)
|
||||||
cd ${INITDIR}/local/build
|
cd "${init_dir}/local/build"
|
||||||
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/${NAME}/src/${NAME}.tar.gz
|
wget "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.14/${name}/src/${name}.tar.gz"
|
||||||
tar -xzvf ${NAME}.tar.gz
|
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 -j${NTASKS}
|
make -j "${ntasks}"
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd "${init_dir}/local"
|
||||||
touch .built.hdf5
|
touch .built.hdf5
|
||||||
cd ${INITDIR}
|
cd "${init_dir}"
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if (( $# != 2 )); then
|
if (($# != 2)); then
|
||||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
prefix=$1
|
||||||
NTASKS=$2
|
ntasks=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
init_dir=$(pwd -P)
|
||||||
mkdir -p ${PREFIX}
|
mkdir -p "${prefix}"
|
||||||
cd ${PREFIX}
|
cd "${prefix}"
|
||||||
PREFIX=$(pwd -P)
|
prefix=$(pwd -P)
|
||||||
cd ${INITDIR}
|
cd "${init_dir}"
|
||||||
./install-deps.sh ${PREFIX} ${NTASKS}
|
./install-deps.sh "${prefix}" "${ntasks}"
|
||||||
cd ..
|
mkdir -p "${init_dir}/local/build/latan"
|
||||||
./bootstrap.sh
|
cd "${init_dir}/local/build/latan"
|
||||||
mkdir -p build
|
cmake -DCMAKE_INSTALL_PREFIX="${prefix}" -DCMAKE_PREFIX_PATH="${prefix}" \
|
||||||
cd build
|
-DCMAKE_BUILD_TYPE="RelWithDebInfo" "${init_dir}/.."
|
||||||
../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 -j${NTASKS}
|
|
||||||
make install
|
make install
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if (($# != 2)); then
|
||||||
if (( $# != 2 )); then
|
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
prefix=$1
|
||||||
NTASKS=$2
|
ntasks=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
init_dir=$(pwd -P)
|
||||||
mkdir -p ${PREFIX}
|
mkdir -p "${prefix}"
|
||||||
cd ${PREFIX}
|
cd "${prefix}"
|
||||||
PREFIX=$(pwd -P)
|
prefix=$(pwd -P)
|
||||||
cd ${INITDIR}/local/build
|
cd "${init_dir}/local/build"
|
||||||
rm -rf root
|
rm -rf root
|
||||||
git clone https://github.com/root-project/root.git
|
git clone https://github.com/root-project/root.git
|
||||||
cd root/math/minuit2/
|
cd root/math/minuit2/
|
||||||
mkdir build; cd build
|
mkdir build
|
||||||
cmake .. -Dminuit2_standalone=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
|
cd build
|
||||||
make -j${NTASKS}
|
cmake .. -Dminuit2_standalone=ON -DCMAKE_INSTALL_PREFIX="${prefix}"
|
||||||
|
make -j "${ntasks}"
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd "${init_dir}/local"
|
||||||
touch .built.minuit
|
touch .built.minuit
|
||||||
cd ${INITDIR}
|
cd "${init_dir}"
|
||||||
|
@ -1,28 +1,30 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
NAME='2.6.1'
|
name='2.6.1'
|
||||||
|
|
||||||
if (( $# != 2 )); then
|
if (($# != 2)); then
|
||||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$1
|
prefix=$1
|
||||||
NTASKS=$2
|
ntasks=$2
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
INITDIR=$(pwd -P)
|
init_dir=$(pwd -P)
|
||||||
mkdir -p ${PREFIX}
|
mkdir -p "${prefix}"
|
||||||
cd ${PREFIX}
|
cd "${prefix}"
|
||||||
PREFIX=$(pwd -P)
|
prefix=$(pwd -P)
|
||||||
cd ${INITDIR}/local/build
|
cd "${init_dir}/local/build"
|
||||||
wget https://github.com/stevengj/nlopt/archive/v${NAME}.tar.gz
|
wget "https://github.com/stevengj/nlopt/archive/v${name}.tar.gz"
|
||||||
tar -xzvf v${NAME}.tar.gz
|
tar -xzvf v${name}.tar.gz
|
||||||
NAME=nlopt-${NAME}
|
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 \
|
||||||
make -j${NTASKS}
|
-DCMAKE_INSTALL_NAME_DIR="${prefix}/lib" -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF \
|
||||||
|
-DNLOPT_MATLAB=OFF -DNLOPT_GUILE=OFF -DNLOPT_SWIG=OFF ..
|
||||||
|
make -j "${ntasks}"
|
||||||
make install
|
make install
|
||||||
cd ${INITDIR}/local
|
cd "${init_dir}/local"
|
||||||
touch .built.nlopt
|
touch .built.nlopt
|
||||||
cd ${INITDIR}
|
cd "${init_dir}"
|
||||||
|
Loading…
Reference in New Issue
Block a user