Skip to content

Commit

Permalink
Add METIS gcc installation to parallel CI
Browse files Browse the repository at this point in the history
  • Loading branch information
loganoz committed Oct 27, 2023
1 parent 4708cb9 commit 4100161
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/CI_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down

0 comments on commit 4100161

Please sign in to comment.