1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-22 00:42:02 +01:00

CI scripts expose number of build tasks

This commit is contained in:
2021-11-16 21:35:35 +00:00
parent 9341a31cf4
commit d6e5ba724d
6 changed files with 26 additions and 20 deletions

View File

@ -1,15 +1,16 @@
#!/usr/bin/env bash
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix>" 1>&2
if (( $# != 2 )); then
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
exit 1
fi
PREFIX=$1
NTASKS=$2
set -ex
mkdir -p local/build
for d in gsl nlopt minuit hdf5; do
if [ ! -e local/.built.${d} ]; then
./install-${d}.sh ${PREFIX}
./install-${d}.sh ${PREFIX} ${NTASKS}
fi
done