setup-fortran-conda
Configure supported Fortran toolchains with matching C and C++ compilers on Ubuntu, macOS and Windows. Install fpm, CMake, Ninja, Meson and pkg-config with optional MPI and additional Conda packages. Generate FORD or Doxygen documentation, status badges, README CI tables and dependency graphs or run Fortitude.
Quick start
The action checks out the repository by default. No separate checkout step is required.
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- uses: gha3mi/setup-fortran-conda@latest
with:
compiler: gfortran
- run: fpm test
Compiler setup includes fpm, CMake,
Ninja, Meson and
pkg-config.
Features
Compilers and builds
Supported compilers, versions, packages, fpm, CMake and Meson.
MPI
Supported MPI combinations, variables and build-tool usage.
FORD
Generate and deploy FORD documentation.
Doxygen
Generate and deploy Doxygen documentation.
Status badges
Generate fpm, CMake and Meson status files.
README table
Generate a compiler, MPI and build-tool matrix.
Dependency graphs
Generate fpm package or Fortran module graphs.
Fortitude
Install and run the Fortitude Fortran linter.