diff --git a/build.sh b/build.sh index f39269d4aeb8d16ee70a8ef890edfd8215492430..7a9ec810124298659c12504a81ac5bf3d1e6f8d1 100755 --- a/build.sh +++ b/build.sh @@ -24,6 +24,7 @@ echo "GPU compilation: $with_gpu" if [ x"$hostname" == x"cifarm-centos-node.mpi-cbg.de" ]; then echo "CentOS node" source /opt/rh/devtoolset-8/enable + ./install_CMAKE_on_CI.sh $HOME/openfpm_dependencies/openfpm_pdata/$branch/ fi if [ x"$hostname" == x"cifarm-ubuntu-node" ]; then @@ -37,9 +38,7 @@ if [ x"$hostname" == x"cifarm-mac-node.mpi-cbg.de" ]; then echo "Mac node" export PATH="/usr/local/bin:$PATH" # rm -rf $HOME/openfpm_dependencies/openfpm_pdata/$branch/PETSC - cd openfpm_vcluster - git stash - cd .. + ./install_CMAKE_on_CI.sh $HOME/openfpm_dependencies/openfpm_pdata/$branch/ fi if [ x"$hostname" == x"falcon1" ]; then diff --git a/install_CMAKE_on_CI.sh b/install_CMAKE_on_CI.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7492ad4088d8737727f255b2b042c06f6edd4a1 --- /dev/null +++ b/install_CMAKE_on_CI.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -d "$1/CMAKE" ]; then + exit 0 +fi + +wget https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3.tar.gz +tar -xvf cmake-3.20.3.tar.gz +cd cmake-3.20.3 + +./bootstrap --prefix=$1/CMAKE +make +make install + +