Skip to content

GitHub Action to setup the Fortran Package Manager for CI on Ubuntu, MacOS and Windows.

License

Notifications You must be signed in to change notification settings

fortran-lang/setup-fpm

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-fpm

GitHub Action to setup the Fortran Package Manager on Ubuntu, MacOS and Windows.

License: MIT .github/workflows/test-workflow.yml

Usage

  - uses: fortran-lang/setup-fpm@v5
    with:
      github-token: ${{ secrets.GITHUB_TOKEN }}

This will download the latest fpm version to the CI machine and add it to the path.

fpm can therefore be called from the command line as usual in your workflows:

e.g.:

  - run: fpm run

Options

github-token (only needed if fpm-version is 'latest' or not specified), an access token used to query the latest version of fpm. Set to ${{ secrets.GITHUB_TOKEN }} to use the existing github actions token.

fpm-version (optional,default:'latest') the tag corresponding a Github release from which to fetch the fpm binary.

  • If set to 'latest' (default) then the latest fpm release at fortran-lang/fpm will be substituted. github-token must be provided if fpm-version is 'latest'.

fpm-repository (optional, default: https://github.com/fortran-lang/fpm) which Github fork to fetch release binaries from.

About

GitHub Action to setup the Fortran Package Manager for CI on Ubuntu, MacOS and Windows.

Resources

License

Code of conduct

Stars

Watchers

Forks