1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

build GSL in CI flow

This commit is contained in:
Antonin Portelli 2019-04-26 16:54:04 +01:00
parent b04338bf36
commit b3bf75f93a
2 changed files with 24 additions and 1 deletions

View File

@ -8,7 +8,7 @@ PREFIX=$1
set -ex
mkdir -p local/build
for d in nlopt minuit hdf5; do
for d in gsl nlopt minuit hdf5; do
if [ ! -e local/.built.${d} ]; then
./install-${d}.sh ${PREFIX}
fi

23
ci-scripts/install-gsl.sh Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
NAME='gsl-2.5'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
PREFIX=$1
set -ex
INITDIR=`pwd`
cd local/build
wget http://ftpmirror.gnu.org/gsl/${NAME}.tar.gz
tar -xzvf ${NAME}.tar.gz
mkdir -p ${NAME}/build
cd ${NAME}/build
../configure --prefix=${PREFIX}
make -j4
make install
cd ${INITDIR}/local
touch .built.gsl
cd ${INITDIR}