Skip to content

Commit

Permalink
Cross-compile gfortran
Browse files Browse the repository at this point in the history
  • Loading branch information
kylc committed Nov 25, 2023
1 parent b58388d commit 9c76cc0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
target: x86_64
- os: macos-latest
target: x86_64
- os: macos-latest
- os: macos-13
target: aarch64

steps:
Expand All @@ -21,7 +21,14 @@ jobs:
with:
submodules: true
- name: symlink gfortran (macOS)
if: runner.os == 'macOS'
if: (runner.os == 'macOS') && (matrix.target == 'aarch64')
run: |
arch -arm64 brew install gcc@12
ln -s /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
gfortran --version
- name: symlink gfortran (macOS)
if: (runner.os == 'macOS') && (matrix.target == 'x86_64')
run: |
ln -s /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
gfortran --version
Expand Down

0 comments on commit 9c76cc0

Please sign in to comment.