From 5a82cd28ddde4dcb2d01822920104a8acd0ea99e Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Mon, 31 May 2021 11:55:43 +0200 Subject: [PATCH] Adding CMAKE on CI --- build.sh | 5 ++--- install_CMAKE_on_CI.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 install_CMAKE_on_CI.sh diff --git a/build.sh b/build.sh index f39269d4a..7a9ec8101 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 000000000..d7492ad40 --- /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 + + -- GitLab