Skip to content

Commit

Permalink
Update ci.yml patch for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvesz authored Jan 15, 2024
1 parent de6c867 commit 05b7a64
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Fortran on MacOS
if: contains( matrix.os, 'macos')
run: |
brew reinstall gcc@${{ matrix.toolchain.version }}
find /usr/local -name "libgfortran"
find /usr/local -name "libquadmath"
find /usr/local -name "gfortran"
ln -s /usr/local/lib/gcc/${{ matrix.toolchain.version }}/libgfortran.5.dylib /usr/local/lib/
ln -s /usr/local/lib/gcc/${{ matrix.toolchain.version }}/libquadmath.0.dylib /usr/local/lib/
ln -s /usr/local/Cellar/gcc/${{ matrix.toolchain.version }}/bin/gfortran /usr/local/bin/gfortran
- run: |
fpm test --compiler ${{ env.FC }} --c-compiler ${{ env.CC }} --cxx-compiler ${{ env.CXX }} --flag "${{ join(matrix.toolchain.flags, ' ') }}"
# ${{ env.FC }} ... # environment vars FC, CC, and CXX are set
Expand Down

0 comments on commit 05b7a64

Please sign in to comment.