Skip to content

Commit 30fa56a

Browse files
committed
try harder to find gfortran
1 parent 69a876e commit 30fa56a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/build_steps.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ function before_build {
3939
# get_macpython_environment ${MB_PYTHON_VERSION} venv
4040
python3.9 -m venv venv
4141
source venv/bin/activate
42-
alias gfortran=gfortran-15
43-
echo "gfortran --version"
42+
43+
# Link to gfortran, see https://github.com/actions/runner-images/issues/3371
44+
sudo ln -fs /opt/homebrew/bin/gfortran-${GCC_V} /usr/local/bin/gfortran
45+
sudo mkdir -p /usr/local/gfortran
46+
sudo ln -sf /opt/homebrew/Cellar/gcc@${GCC_V}/*/lib/gcc/${GCC_V} /usr/local/gfortran/lib
47+
echo GFORTRAN
4448
which gfortran
4549
gfortran --version
50+
echo --------
4651
# Deployment target set by gfortran_utils
4752
echo "Deployment target $MACOSX_DEPLOYMENT_TARGET"
4853

0 commit comments

Comments
 (0)