`fortran-lang/setup-fortran`: support macOS with Apple Silicon chips

GitHub Actions now provide macOS-14 runners with Apple Silicon chips. It would be nice if fortran-lang/setup-fortran could support them. Thanks.

2 Likes

Nice! I need to start using it for all projects.

1 Like

Before fortran-lang/setup-fortran supports macOS-14 (with Apple Silicon chip), I set up gfortran on it in the following dirty way, where ${{ matrix.version }} is 11, 12, or 13.

      - name: Set up gfortran for macOS 14
        if: ${{ matrix.os == 'macos-14' }}
        run: |
          sudo ln -s $(which gfortran-${{ matrix.version }}) $(dirname $(which gfortran-${{ matrix.version }}))/gfortran                                                                                 
          which gfortran && gfortran --version   
1 Like