Skip to content

Commit 6e496ae

Browse files
committed
fix(ci): unlink gcc after installing netcdf-fortran
1 parent 1b9812a commit 6e496ae

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/actions/test-extended/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ runs:
2020
shell: bash
2121
run: |
2222
brew install netcdf-fortran libevent
23+
# netcdf-fortran pulls in Homebrew's unversioned (latest) gcc as a
24+
# dependency, symlinking an unpinned gfortran/gcc/g++ into
25+
# /opt/homebrew/bin, which precedes /usr/local/bin on PATH and would
26+
# otherwise shadow the version setup-fortran pins below.
27+
if brew list --formula gcc &>/dev/null; then
28+
brew unlink gcc
29+
fi
2330
nc-config --all
2431
nf-config --all
2532

0 commit comments

Comments
 (0)