Skip to content

Commit 3dbdb13

Browse files
committed
Add Fortran compiler install to mac builds
1 parent faa69de commit 3dbdb13

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/build-wheels.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ jobs:
5858

5959
steps:
6060
- uses: actions/checkout@v5
61+
- name: Install Fortran compiler
62+
# When building on Mac, we need to have a Fortran compiler
63+
if: ${{ startsWith(matrix.os, 'macos') }}
64+
uses: fortran-lang/setup-fortran@v1
65+
id: setup-fortran
66+
with:
67+
# TODO: figure out whether we need/want to use other compilers too
68+
compiler: "gcc"
69+
version: "13"
6170
- name: Build wheels
6271
# TODO: remove
6372
if: matrix.cibw_archs == 'AMD64'
@@ -92,16 +101,6 @@ jobs:
92101
# # with:
93102
# # architecture: x64
94103
# #
95-
# # - name: Install Fortran compiler
96-
# # # When building from source, ensure we have a Fortran compiler
97-
# # if: ${{ startsWith(matrix.os, 'macos') }}
98-
# # uses: fortran-lang/setup-fortran@v1
99-
# # id: setup-fortran
100-
# # with:
101-
# # # TODO: figure out whether we need/want to use other compilers too
102-
# # compiler: "gcc"
103-
# # version: "13"
104-
# #
105104
# # - name: Set macOS-13 specific flags
106105
# # if: matrix.os == 'macos-13'
107106
# # run: |

0 commit comments

Comments
 (0)