Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

scriptClonePackage.sh 262 Bytes
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash

basePackageDirName="$1"
urlGitToPackage="$2"
CMAKE_INSTALL_PREFIX="$3"

git clone $urlGitToPackage
cd $basePackageDirName

mkdir -p build
cd build

cmake .. -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
make -j `nproc`

make install -j `nproc`