We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d65ce commit 1ac66f6Copy full SHA for 1ac66f6
1 file changed
.github/workflows/test.yml
@@ -46,10 +46,17 @@ jobs:
46
47
# --- 4a. Build and Test (Unix: Linux / macOS) ---
48
- name: Configure CMake (Unix)
49
- if: runner.os != 'Windows'
50
- env:
51
- FC: gfortran
+ if: matrix.os != 'windows-latest'
52
run: |
+ if [ "$RUNNER_OS" == "macOS" ]; then
+ # Dynamically find Homebrew's gfortran (handles gfortran-13, gfortran-14, etc.)
53
+ export FC=$(ls $(brew --prefix)/bin/gfortran* | sort -V | tail -n 1)
54
+ else
55
+ export FC=gfortran
56
+ fi
57
+
58
+ echo "Using Fortran compiler: $FC"
59
60
cmake -B build -S . \
61
-G Ninja \
62
-DCMAKE_BUILD_TYPE=Release
0 commit comments