1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-07-05 22:27:05 +01:00

CI scripts update

This commit is contained in:
2024-02-10 18:39:22 +01:00
parent 7d55fc30b5
commit ccdc54243e
6 changed files with 92 additions and 91 deletions

View File

@ -1,23 +1,22 @@
#!/usr/bin/env bash
if (( $# != 2 )); then
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
if (($# != 2)); then
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
exit 1
fi
PREFIX=$1
NTASKS=$2
prefix=$1
ntasks=$2
set -ex
INITDIR=$(pwd -P)
mkdir -p ${PREFIX}
cd ${PREFIX}
PREFIX=$(pwd -P)
cd ${INITDIR}
./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=native -mtune=native"
make -j${NTASKS}
init_dir=$(pwd -P)
mkdir -p "${prefix}"
cd "${prefix}"
prefix=$(pwd -P)
cd "${init_dir}"
./install-deps.sh "${prefix}" "${ntasks}"
mkdir -p "${init_dir}/local/build/latan"
cd "${init_dir}/local/build/latan"
cmake -DCMAKE_INSTALL_PREFIX="${prefix}" -DCMAKE_PREFIX_PATH="${prefix}" \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" "${init_dir}/.."
make -j "${ntasks}"
make install