From f6e16ca6cf676416d2f9e7917a6d92ae3b40b37c Mon Sep 17 00:00:00 2001 From: Dan Bonachea Date: Fri, 7 Nov 2025 14:07:42 -0800 Subject: [PATCH] CI: Fix FPM failures on macos-15-intel --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a31894..42d39b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -156,10 +156,17 @@ jobs: fi - name: Install macOS Dependencies - if: contains(matrix.os, 'macos') && matrix.compiler == 'flang' + if: contains(matrix.os, 'macos') run: | set -x brew update + # fpm binary distribution for macOS requires gfortran shared libraries from gcc@12 + brew install gcc@12 + + - name: Install LLVM flang on macOS + if: contains(matrix.os, 'macos') && matrix.compiler == 'flang' + run: | + set -x brew install llvm@${COMPILER_VERSION} flang # workaround issue #228: clang cannot find homebrew flang's C header for p in /opt/homebrew /usr/local $(brew --prefix) ; do find $p/Cellar/flang -name ISO_Fortran_binding.h 2>/dev/null || true ; done