Skip to content

Commit 4dc811b

Browse files
committed
CI: Add macos-14
1 parent 902c914 commit 4dc811b

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
13+
os: [macos-13, macos-14, ubuntu-22.04, ubuntu-24.04]
1414
compiler: [ gfortran ]
1515
version: [ 12, 13, 14 ]
1616
extra_flags: [ -ffree-line-length-0 ]
@@ -38,10 +38,6 @@ jobs:
3838
- name: Checkout code
3939
uses: actions/checkout@v4
4040

41-
- uses: fortran-lang/setup-fpm@main
42-
with:
43-
github-token: ${{ secrets.GITHUB_TOKEN }}
44-
4541
- name: Install Dependencies Ubuntu
4642
if: contains(matrix.os, 'ubuntu') && 0
4743
run: |
@@ -52,6 +48,20 @@ jobs:
5248
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
5349
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
5450
51+
- uses: fortran-lang/setup-fpm@main
52+
if: ${{ matrix.os != 'macos-14' }}
53+
with:
54+
github-token: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Build FPM
57+
if: ${{ matrix.os == 'macos-14' }} # no arm64 fpm distro, build from source
58+
run: |
59+
set -x
60+
curl --retry 5 -LOsS https://github.com/fortran-lang/fpm/releases/download/v0.11.0/fpm-0.11.0.F90
61+
mkdir fpm-temp
62+
gfortran-14 -o fpm-temp/fpm fpm-0.11.0.F90
63+
echo "PATH=`pwd`/fpm-temp:${PATH}" >> "$GITHUB_ENV"
64+
5565
- name: Version info
5666
run: |
5767
set -x

0 commit comments

Comments
 (0)