Skip to content

OS Specific build steps #25155

Answered by BrightRan
jlconlin asked this question in Actions
Discussion options

You must be logged in to vote

@jlconlin ,

On macOS , Xcode contains the tools needed to compile native code on the machine, include gfortran. So you do not need to additionally install gfortran  for macOS , and just install gfortran for Linux.

For example:

jobs:
  test:
    name: Test
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    steps:
      - name: Install gfortran for Linux
        if: matrix.os == 'ubuntu-latest'
        run: sudo apt-get install gfortran
  - name: Check gfortran version
    run: gfortran --version

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants