mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-14 01:45:35 +00:00
build GSL in CI flow
This commit is contained in:
parent
b04338bf36
commit
b3bf75f93a
@ -8,7 +8,7 @@ PREFIX=$1
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p local/build
|
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
|
if [ ! -e local/.built.${d} ]; then
|
||||||
./install-${d}.sh ${PREFIX}
|
./install-${d}.sh ${PREFIX}
|
||||||
fi
|
fi
|
||||||
|
23
ci-scripts/install-gsl.sh
Normal file
23
ci-scripts/install-gsl.sh
Normal 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}
|
Loading…
Reference in New Issue
Block a user