Skip to content

Commit

Permalink
Try to force GCC-12 for MacOS (try 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmloose committed Jul 25, 2024
1 parent 2705a23 commit 13eae93
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
matrix:
# os: [ubuntu-latest] #, macos-latest]
os: [macos-12]
include:
- os: macos-12
toolchain: {compiler: gcc, version 12}
toolchain:
- {compiler: gcc, version 12}
# include:
# - os: macos-12
# toolchain: {compiler: gcc, version 12}
# include:
# - runs-on: macos-12
# compiler: gcc
Expand All @@ -36,21 +38,25 @@ jobs:
# echo "CXX=g++-${{ matrix.gcc }}" >> $GITHUB_ENV
# echo "VERSION=${{ matrix.gcc }}" >> $GITHUB_ENV

- name: Setup GNU Fortran
- name: Setup Fortran
uses: fortran-lang/setup-fortran@v1
id: macos-setup-fortran
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
if: runner.os == 'macOS'

- name: Build wheels
uses: pypa/[email protected]
- run: |
${{ env.FC }} ... # environment vars FC, CC, and CXX are set
${{ steps.setup-fortran.outputs.fc }} ... # outputs work too
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl
# - name: Build wheels
# uses: pypa/[email protected]

# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# path: wheelhouse/*.whl

build_sdist:
name: Build source distribution
Expand Down

0 comments on commit 13eae93

Please sign in to comment.