Code Monkey home page Code Monkey logo

setup-fortran's Introduction

Setup Fortran

Test

Action to setup a Fortran compiler.

Usage

This action sets up a Fortran compiler on Ubuntu, MacOS and Windows runners.

jobs:
  test:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]

    steps:
    - uses: awvwgk/setup-fortran@main
      id: setup-fortran
      with:
        compiler: gcc
        version: 11

    - run: ${{ env.FC }} --version
      env:
        FC: ${{ steps.setup-fortran.outputs.fc }}

Options

  • compiler: Compiler toolchain to setup, available options are gcc
  • version: Version of the compiler toolchain, available options for gcc are 5-12

Outputs

The action sets the following outputs:

  • cc: C compiler executable, e.g. gcc
  • fc: Fortran compiler executable, e.g. gfortran

Environment variables

The same values are also set as environment variables:

  • CC
  • FC

These are made available to subsequent workflow steps via the GITHUB_ENV environment file mechanism.

Runner compatibility

Support for the GCC toolchain varies across GitHub-hosted runner images.

runner 5 6 7 8 9 10 11 12
macos-11
macos-12
ubuntu-18.04
ubuntu-20.04
ubuntu-22.04
windows-2019
windows-2022

License

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “as is” basis, without warranties or conditions of any kind, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

setup-fortran's People

Contributors

awvwgk avatar github-actions[bot] avatar wpbonelli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.