From e8739db6dc835570ced5403b4d9af8c88f4998c0 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 21:37:43 +0100 Subject: [PATCH 01/15] Add macos-14 and install gcc-12 The fpm releases are linked to the fortran runtime library from gcc-12, but gcc-12 is no longer included in macos-14 runners by default. Instead, gcc-12 is now installed manually using homebrew. --- .github/workflows/CI.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a057af7..38b634b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,22 +8,19 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest,macos-13] + os: [ubuntu-latest] toolchain: # - {compiler: gcc, version: 15} - {compiler: intel, version: '2024.1'} - {compiler: intel, version: '2025.2'} - {compiler: intel, version: '2025.3'} - {compiler: intel-classic, version: '2021.10'} - exclude: - # - os: ubuntu-latest - # toolchain: {compiler: gcc, version: 15} + include: - os: macos-13 - toolchain: {compiler: intel, version: '2024.1'} - - os: macos-13 - toolchain: {compiler: intel, version: '2025.2'} - - os: macos-13 - toolchain: {compiler: intel, version: '2025.3'} + toolchain: {compiler: intel-clasic, version: '2021.10'} + - os: macos-14 + toolchain: {compiler: intel-clasic, version: '2021.10'} + steps: - name: Checkout code @@ -40,5 +37,10 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install GCC-12 on macos + if: contains(matrix.os, 'macos-14') + run: | + brew install gcc@12 + - run: | fpm test \ No newline at end of file From d377e4f30bbc71d84137283a1db5cedbb95ebd98 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 21:45:03 +0100 Subject: [PATCH 02/15] fix typo in macOS CI --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 38b634b..b940be9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -17,9 +17,9 @@ jobs: - {compiler: intel-classic, version: '2021.10'} include: - os: macos-13 - toolchain: {compiler: intel-clasic, version: '2021.10'} + toolchain: {compiler: intel-classic, version: '2021.10'} - os: macos-14 - toolchain: {compiler: intel-clasic, version: '2021.10'} + toolchain: {compiler: intel-classic, version: '2021.10'} steps: From 6ae382dc5f18e22e1251871a68122bfff459ebeb Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 21:50:26 +0100 Subject: [PATCH 03/15] print gcc-12 version --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b940be9..6925eae 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,6 +41,7 @@ jobs: if: contains(matrix.os, 'macos-14') run: | brew install gcc@12 + gcc-12 --version - run: | fpm test \ No newline at end of file From 41dc51f935ad2c3b307182097bb88feaa2d27976 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 21:56:27 +0100 Subject: [PATCH 04/15] Check location of gcc-12 --- .github/workflows/CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6925eae..dfcedcb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,6 +42,8 @@ jobs: run: | brew install gcc@12 gcc-12 --version + whereis gcc-12 + which gcc-12 - run: | fpm test \ No newline at end of file From e60e328b2b4d46b4917e31c2bd55ac8e6d3fd844 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 22:09:47 +0100 Subject: [PATCH 05/15] print more info about gcc-12 --- .github/workflows/CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dfcedcb..f843f02 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,9 +41,11 @@ jobs: if: contains(matrix.os, 'macos-14') run: | brew install gcc@12 + brew info gcc@12 gcc-12 --version whereis gcc-12 which gcc-12 + which gcc@12 - run: | fpm test \ No newline at end of file From 270fd9a51cc22f0a56a8fe0940fcf939b6a15f23 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 22:21:46 +0100 Subject: [PATCH 06/15] Check more info about gcc-12 path --- .github/workflows/CI.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f843f02..cd17da7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,7 +45,8 @@ jobs: gcc-12 --version whereis gcc-12 which gcc-12 - which gcc@12 + ls /opt/homebrew/Cellar/gcc@12/12.4.0 + ls /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 - run: | fpm test \ No newline at end of file From 3770a7415c81f937800855275afe8fdd2cea4ac8 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 22:28:55 +0100 Subject: [PATCH 07/15] Try to add gcc-12 to dyld path --- .github/workflows/CI.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cd17da7..0c09cdd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,12 +41,7 @@ jobs: if: contains(matrix.os, 'macos-14') run: | brew install gcc@12 - brew info gcc@12 - gcc-12 --version - whereis gcc-12 - which gcc-12 - ls /opt/homebrew/Cellar/gcc@12/12.4.0 - ls /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 + export DYLD_LIBRARY_PATH="/opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12:$DYLD_LIBRARY_PATH" - run: | fpm test \ No newline at end of file From 36e45620bd64ec893e80bdc6a078da71c12525cd Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 22:40:38 +0100 Subject: [PATCH 08/15] Try install_name_tool --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0c09cdd..abc3c3e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,7 +41,7 @@ jobs: if: contains(matrix.os, 'macos-14') run: | brew install gcc@12 - export DYLD_LIBRARY_PATH="/opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12:$DYLD_LIBRARY_PATH" + install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 fpm - run: | fpm test \ No newline at end of file From 9bf05a64b76e6f6fbce6c4d7286f3d2104a2a09c Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 22:47:17 +0100 Subject: [PATCH 09/15] find fpm path --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index abc3c3e..8b27201 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,6 +41,7 @@ jobs: if: contains(matrix.os, 'macos-14') run: | brew install gcc@12 + which fpm install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 fpm - run: | From 692fcf0bb6fce386c38a430d24a94e600e7ffb72 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 22:51:03 +0100 Subject: [PATCH 10/15] Try full fpm path for install_name_tool --- .github/workflows/CI.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8b27201..0f254d6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,8 +41,7 @@ jobs: if: contains(matrix.os, 'macos-14') run: | brew install gcc@12 - which fpm - install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 fpm + install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 /Users/runner/work/_temp/fpm - run: | fpm test \ No newline at end of file From eff687a86dfcac86cecd0cbdb630a3bf0cdf3589 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 23:02:17 +0100 Subject: [PATCH 11/15] Try symlink to gcc-12 install path --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0f254d6..7ee9664 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,6 +42,9 @@ jobs: run: | brew install gcc@12 install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 /Users/runner/work/_temp/fpm + sudo mkdir -p /usr/local/opt + sudo ln -s /opt/homebrew/Cellar/gcc@12 /usr/local/opt/gcc@12 + - run: | fpm test \ No newline at end of file From 3ac584622fb8a7572891d216acc8d9a170b30075 Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 23:15:28 +0100 Subject: [PATCH 12/15] Try to debug homebrew --- .github/workflows/CI.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7ee9664..39ec527 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -44,6 +44,10 @@ jobs: install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 /Users/runner/work/_temp/fpm sudo mkdir -p /usr/local/opt sudo ln -s /opt/homebrew/Cellar/gcc@12 /usr/local/opt/gcc@12 + which brew + brew --prefix + brew config + - run: | From dac780359fafab5b7fc01fd2074a2881aaf5826e Mon Sep 17 00:00:00 2001 From: edvino Date: Thu, 20 Nov 2025 23:35:59 +0100 Subject: [PATCH 13/15] Try to macos-15-intel --- .github/workflows/CI.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 39ec527..6ff8e7d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,7 +18,7 @@ jobs: include: - os: macos-13 toolchain: {compiler: intel-classic, version: '2021.10'} - - os: macos-14 + - os: macos-15-intel toolchain: {compiler: intel-classic, version: '2021.10'} @@ -37,16 +37,16 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Install GCC-12 on macos - if: contains(matrix.os, 'macos-14') + - name: Install GCC-12 on macos-15-intel + if: contains(matrix.os, 'macos-15-intel') run: | brew install gcc@12 - install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 /Users/runner/work/_temp/fpm - sudo mkdir -p /usr/local/opt - sudo ln -s /opt/homebrew/Cellar/gcc@12 /usr/local/opt/gcc@12 - which brew - brew --prefix - brew config +# install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 /Users/runner/work/_temp/fpm +# sudo mkdir -p /usr/local/opt +# sudo ln -s /opt/homebrew/Cellar/gcc@12 /usr/local/opt/gcc@12 +# which brew +# brew --prefix +# brew config From c94be42adafc022c516a46b864eb8c4fcf95d4f1 Mon Sep 17 00:00:00 2001 From: edvino Date: Fri, 21 Nov 2025 18:36:41 +0100 Subject: [PATCH 14/15] Remove macos-13 runner --- .github/workflows/CI.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6ff8e7d..1c55764 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,8 +16,6 @@ jobs: - {compiler: intel, version: '2025.3'} - {compiler: intel-classic, version: '2021.10'} include: - - os: macos-13 - toolchain: {compiler: intel-classic, version: '2021.10'} - os: macos-15-intel toolchain: {compiler: intel-classic, version: '2021.10'} @@ -41,14 +39,6 @@ jobs: if: contains(matrix.os, 'macos-15-intel') run: | brew install gcc@12 -# install_name_tool -add_rpath /opt/homebrew/Cellar/gcc@12/12.4.0/lib/gcc/12 /Users/runner/work/_temp/fpm -# sudo mkdir -p /usr/local/opt -# sudo ln -s /opt/homebrew/Cellar/gcc@12 /usr/local/opt/gcc@12 -# which brew -# brew --prefix -# brew config - - - run: | fpm test \ No newline at end of file From 84e9aca72ebb960907de2bce363f4ab63b07bea9 Mon Sep 17 00:00:00 2001 From: edvino Date: Fri, 21 Nov 2025 18:42:15 +0100 Subject: [PATCH 15/15] Update versions of checkout and fpm actions --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1c55764..d79f7da 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v6 - uses: fortran-lang/setup-fortran@main id: setup-fortran @@ -31,7 +31,7 @@ jobs: version: ${{ matrix.toolchain.version }} - name: Setup Fortran Package Manager - uses: fortran-lang/setup-fpm@v7 + uses: fortran-lang/setup-fpm@v8 with: github-token: ${{ secrets.GITHUB_TOKEN }}