skip rpm install on selfhosted runner [ci skip]

This commit is contained in:
edoapra 2022-11-13 16:53:48 -08:00
parent 2abe0ed118
commit 776a9747ca
No known key found for this signature in database
GPG key ID: 472C4EBB4F3AEDFA

View file

@ -89,10 +89,12 @@ echo DISTR is "$DISTR"
fi
if [[ "$os" == "Linux" ]]; then
if [[ "$DISTR" == "fedora" ]] || [[ "$DISTR" == "centos" ]] ; then
env
rpminst=dnf
if [[ "$DISTR" == "centos" ]] ; then
rpminst=yum
fi
if [[ "$HOSTNAME" != "fedoraqemuwe40672" ]]; then
sudo $rpminst udate; sudo $rpminst -y install perl perl python3-devel time patch openblas-serial64 openmpi-devel cmake gcc-gfortran unzip which make tar bzip2 openssh-clients rsync
# module load mpi
if [[ "$MPI_IMPL" == "openmpi" ]]; then
@ -101,6 +103,7 @@ fi
echo ready only for openmpi
exit 1
fi
fi
export PATH=/usr/lib64/"$MPI_IMPL"/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib64/"$MPI_IMPL"/lib:$LD_LIBRARY_PATH
which mpif90