-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to simplify gfortran setting for macOS
- Loading branch information
Showing
1 changed file
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,20 +54,25 @@ jobs: | |
- name: Checks out repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Symlink gfortran for x86 macOS | ||
if: matrix.os == 'macos-13' | ||
run: | | ||
# make sure gfortran is available | ||
ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran | ||
gfortran --version | ||
- name: Symlink gfortran for ARM macOS | ||
if: matrix.os == 'macos-14' | ||
# - name: Symlink gfortran for x86 macOS | ||
# if: matrix.os == 'macos-13' | ||
# run: | | ||
# # make sure gfortran is available | ||
# ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran | ||
# gfortran --version | ||
|
||
# - name: Symlink gfortran for ARM macOS | ||
# if: matrix.os == 'macos-14' | ||
# run: | | ||
# # make sure gfortran is available | ||
# ln -s /opt/homebrew/bin/gfortran-13 /opt/homebrew/bin/gfortran | ||
# gfortran --version | ||
|
||
- name: Append appropriate gfortran version to PATH | ||
if: (matrix.os == 'macos-13') || (matrix.os == 'macos-14') | ||
run: | | ||
# make sure gfortran is available | ||
ln -s /opt/homebrew/bin/gfortran-13 /opt/homebrew/bin/gfortran | ||
gfortran --version | ||
echo "SEARCHPATH=$(brew --prefix gfortran-13):${PATH}" >> $GITHUB_ENV | ||
- name: Install libomp using brew | ||
if: (matrix.os == 'macos-13') || (matrix.os == 'macos-14') | ||
run: | | ||
|
@@ -83,6 +88,7 @@ jobs: | |
if: ${{ !(matrix.os == 'macos-14' && matrix.pyver == 'cp37') }} | ||
uses: pypa/[email protected] | ||
env: | ||
PATH: ${{ env.SEARCHPATH }} | ||
CIBW_BUILD: ${{matrix.pyver}}-* | ||
CIBW_SKIP: "pp37-* cp37-* *-win32 *-manylinux_i686" | ||
CIBW_ARCHS_LINUX: auto | ||
|