Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

modflowpy/install-gfortran-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install-gfortran-action

GitHub tag CI Project Status: Unsupported – The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.

An action to setup the GNU Fortran compiler.

Note: Maintenance of this action has ceased. If the GCC preinstalled on runner images does not meet your needs, fortran-lang/setup-fortran is recommended.

Usage

To use this action, add a step like the following to your workflow:

- name: Setup GNU Fortran
  uses: modflowpy/install-gfortran-action@v1

GNU fortran is pre-installed on runners for all three platforms, so there is no need to install it fresh — this action simply symlinks the compiler executables to a common location /usr/local/bin/gfortran on Linux and MacOS, putting gfortran on the path. On Windows the action works around an error preventing the default installation from working properly.

Install location

Linux

On ubuntu-latest runners this action simply symlinks /usr/bin/gfortran-10 to /usr/local/bin/gfortran.

MacOS

On macos-latest runners this action symlinks /usr/local/bin/gfortran-12 to /usr/local/bin/gfortran, as well as /usr/local/opt/gcc/lib/gcc/12 to the corresponding paths for versions 10 and 11 for compatibility with binaries expecting dynamically loaded modules.

Windows

On windows-latest runners gfortran comes pre-installed via Chocolatey. This action works around gfortran version 20220626.1 issues by symlinking /c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/bin to Chocolatey's bin directory.