Skip to content

Commit

Permalink
chore: Add setup-fortran to use the same version of gcc everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjared committed Apr 10, 2024
1 parent 2562830 commit 9f4461c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@ jobs:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
toolchain: [{compiler: gcc, version: 12}]

steps:
- uses: actions/checkout@v4

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
Expand All @@ -38,7 +45,6 @@ jobs:
# configure cibuildwheel to build native archs ('auto'), and some
# emulated ones
CIBW_ARCHS_LINUX: auto aarch64
CIBW_BEFORE_ALL_MACOS: alias gfortran=gfortran-12

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 9f4461c

Please sign in to comment.