From d6e35f25f892b1f2358e39e46cacb6ede259fd4b Mon Sep 17 00:00:00 2001 From: Wei-keng Liao Date: Sat, 18 May 2024 15:48:29 -0500 Subject: [PATCH] Github action: update checking for gfortran after brew install --- .github/workflows/mac_mpich.yml | 19 ------------------- .github/workflows/mac_openmpi.yml | 19 ------------------- 2 files changed, 38 deletions(-) diff --git a/.github/workflows/mac_mpich.yml b/.github/workflows/mac_mpich.yml index 2bc11e242..04af0c684 100644 --- a/.github/workflows/mac_mpich.yml +++ b/.github/workflows/mac_mpich.yml @@ -36,26 +36,7 @@ jobs: brew install gcc which gcc gcc --version - ls -l /usr/local/bin/gfortran* - version=12 - ln -fs /usr/local/bin/gfortran-${version} /usr/local/bin/gfortran - ln -fs /usr/local/bin/gcc-${version} /usr/local/bin/gcc - ln -fs /usr/local/bin/g++-${version} /usr/local/bin/g++ - # link lib dir for previous GCC versions to avoid missing .dylib issues - for (( i=12; i>4; i-- )) - do - gcc_lib_path="/usr/local/opt/gcc/lib/gcc/$i" - if [ -d $gcc_lib_path ]; then - echo "found $gcc_lib_path" - for (( j=$i; j>4; j-- )) - do - ln -fs /usr/local/opt/gcc/lib/gcc/$i /usr/local/opt/gcc/lib/gcc/$j - done - break - fi - done which gfortran - gfortran --version brew install automake autoconf libtool m4 - name: Build MPICH run: | diff --git a/.github/workflows/mac_openmpi.yml b/.github/workflows/mac_openmpi.yml index 9b0c7e237..06b6d16f0 100644 --- a/.github/workflows/mac_openmpi.yml +++ b/.github/workflows/mac_openmpi.yml @@ -36,26 +36,7 @@ jobs: brew install gcc which gcc gcc --version - ls -l /usr/local/bin/gfortran* - version=12 - ln -fs /usr/local/bin/gfortran-${version} /usr/local/bin/gfortran - ln -fs /usr/local/bin/gcc-${version} /usr/local/bin/gcc - ln -fs /usr/local/bin/g++-${version} /usr/local/bin/g++ - # link lib dir for previous GCC versions to avoid missing .dylib issues - for (( i=12; i>4; i-- )) - do - gcc_lib_path="/usr/local/opt/gcc/lib/gcc/$i" - if [ -d $gcc_lib_path ]; then - echo "found $gcc_lib_path" - for (( j=$i; j>4; j-- )) - do - ln -fs /usr/local/opt/gcc/lib/gcc/$i /usr/local/opt/gcc/lib/gcc/$j - done - break - fi - done which gfortran - gfortran --version brew install automake autoconf libtool m4 - name: Build OPENMPI run: |