diff --git a/.github/workflows/CI_parallel.yml b/.github/workflows/CI_parallel.yml index 2d3079128..5187399c9 100644 --- a/.github/workflows/CI_parallel.yml +++ b/.github/workflows/CI_parallel.yml @@ -74,9 +74,10 @@ jobs: # path: /home/runner/metis-5.1.0 # key: metis-${{ runner.os }}-b - - name: Install METIS + - name: Install METIS (intel) # if: (steps.cache-metis.outputs.cache-hit != 'true') # wget "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz" (OLD LINK TO METIS) + if: (matrix.compiler == 'ifort') run: | source /opt/intel/oneapi/setvars.sh || true wget "https://src.fedoraproject.org/lookaside/pkgs/metis/metis-5.1.0.tar.gz/5465e67079419a69e0116de24fce58fe/metis-5.1.0.tar.gz" @@ -89,6 +90,19 @@ jobs: # export METIS_HOME=~/metis-5.1.0/build/Linux-x86_64 # echo $METIS_HOME + - name: Install METIS (gnu) + # if: (steps.cache-metis.outputs.cache-hit != 'true') + # wget "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz" (OLD LINK TO METIS) + if: (matrix.compiler == 'gfortran') + run: | + wget "https://src.fedoraproject.org/lookaside/pkgs/metis/metis-5.1.0.tar.gz/5465e67079419a69e0116de24fce58fe/metis-5.1.0.tar.gz" + tar -xvf metis-5.1.0.tar.gz + cd metis-5.1.0 + make config cc=gcc + make + mv /home/runner/work/horses3d/horses3d/metis-5.1.0/build/Linux-x86_64/libmetis /home/runner/work/horses3d/horses3d/metis-5.1.0/build/Linux-x86_64/lib + mv /home/runner/work/horses3d/horses3d/metis-5.1.0/build/Linux-x86_64/programs /home/runner/work/horses3d/horses3d/metis-5.1.0/build/Linux-x86_64/bin + - name: Check METIS PATH run: echo $METIS_HOME