Skip to content

Commit 319a523

Browse files
committed
Add Fortran compiler install step
1 parent c8b9176 commit 319a523

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/install-pypi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,24 @@ jobs:
2626
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
2727
# Check both 'library' install and the 'application' (i.e. locked) install
2828
install-target: ["example-fgen-basic", "example-fgen-basic[locked]"]
29+
# TODO: consider adding other compilers to our matrix
30+
# (see https://github.com/fortran-lang/setup-fortran)
31+
toolchain:
32+
- {compiler: gcc, version: 15}
2933
runs-on: "${{ matrix.os }}"
3034
steps:
3135
- name: Set up Python "${{ matrix.python-version }}"
3236
id: setup-python
3337
uses: actions/setup-python@v4
3438
with:
3539
python-version: "${{ matrix.python-version }}"
40+
# While building from source, ensure we have a Fortran compiler
41+
- name: Install Fortran compiler
42+
uses: fortran-lang/setup-fortran@v1
43+
id: setup-fortran
44+
with:
45+
compiler: ${{ matrix.toolchain.compiler }}
46+
version: ${{ matrix.toolchain.version }}
3647
- name: Install
3748
run: |
3849
pip install --upgrade pip wheel

0 commit comments

Comments
 (0)