{"id":49663387,"url":"https://github.com/minhqdao/setup-fortran","last_synced_at":"2026-05-06T14:01:10.868Z","repository":{"id":353171643,"uuid":"1215993955","full_name":"minhqdao/setup-fortran","owner":"minhqdao","description":"GitHub Action to set up Fortran compilers and toolchains","archived":false,"fork":false,"pushed_at":"2026-04-29T19:46:37.000Z","size":24372,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-29T21:32:37.107Z","etag":null,"topics":["arm","compiler","flang","fortran","gcc","gfortran","github-actions","installation","intel","lfortran","macos","msys2","runner","setup","toolchain","ubuntu","ucrt","windows","workflow","x86-64"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minhqdao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T13:09:01.000Z","updated_at":"2026-04-29T19:46:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/minhqdao/setup-fortran","commit_stats":null,"previous_names":["minhqdao/setup-fortran"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minhqdao/setup-fortran","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fsetup-fortran","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fsetup-fortran/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fsetup-fortran/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fsetup-fortran/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhqdao","download_url":"https://codeload.github.com/minhqdao/setup-fortran/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fsetup-fortran/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32697117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arm","compiler","flang","fortran","gcc","gfortran","github-actions","installation","intel","lfortran","macos","msys2","runner","setup","toolchain","ubuntu","ucrt","windows","workflow","x86-64"],"created_at":"2026-05-06T14:01:09.287Z","updated_at":"2026-05-06T14:01:10.854Z","avatar_url":"https://github.com/minhqdao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-fortran\n\nA GitHub Action to install and configure Fortran compilers across Linux, macOS, and Windows runners.\n\n## Usage\n\n```yaml\n- uses: minhqdao/setup-fortran@v1\n```\n\n## Inputs\n\n| Input | Description | Default |\n|-------|-------------|---------|\n| `compiler` | Compiler to install (`gfortran`, `ifx`, `ifort`, `nvfortran`, `aocc`, `lfortran`, `flang`) | `gfortran` |\n| `version` | Compiler version to install | `latest` |\n| `msystem` | MSYS2 subsystem (`native`, `ucrt64`, `clang64`) | `native` |\n\n## Compiler support\n\n### `gfortran`\n\n| Version | ubuntu-24.04 | ubuntu-22.04 | ubuntu-24.04-arm | ubuntu-22.04-arm | macos-26 | macos-26-intel | macos-15 | macos-15-intel | macos-14 | windows-2025 | windows-2022 | windows-2025 (ucrt64) | windows-2022 (ucrt64) |\n|---------|--------------|--------------|------------------|------------------|----------|----------------|----------|----------------|----------|--------------|--------------|----------------------|----------------------|\n| latest  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 16      | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ |\n| 15      | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 14      | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 13      | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 12      | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 11      | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n\n---\n\n### `ifx`\n\n| Version | ubuntu-24.04 | ubuntu-22.04 | windows-2025 | windows-2022 |\n|---------|--------------|--------------|--------------|--------------|\n| latest   | ✅ | ✅ | ✅ | ✅ |\n| 2026.0.0 | ❌ | ❌ | ✅ | ✅ |\n| 2026.0   | ✅ | ✅ | ❌ | ❌ |\n| 2025.3.3 | ❌ | ❌ | ✅ | ✅ |\n| 2025.3.2 | ❌ | ❌ | ✅ | ✅ |\n| 2025.3.1 | ❌ | ❌ | ✅ | ✅ |\n| 2025.3.0 | ❌ | ❌ | ✅ | ✅ |\n| 2025.3   | ✅ | ✅ | ❌ | ❌ |\n| 2025.2.1 | ❌ | ❌ | ✅ | ✅ |\n| 2025.2.0 | ❌ | ❌ | ✅ | ✅ |\n| 2025.2   | ✅ | ✅ | ❌ | ❌ |\n| 2025.1.0 | ❌ | ❌ | ✅ | ✅ |\n| 2025.1   | ✅ | ✅ | ❌ | ❌ |\n| 2025.0.0 | ❌ | ❌ | ✅ | ✅ |\n| 2025.0   | ✅ | ✅ | ❌ | ❌ |\n| 2024.2.1 | ❌ | ❌ | ✅ | ✅ |\n| 2024.2.0 | ❌ | ❌ | ✅ | ✅ |\n| 2024.2   | ✅ | ✅ | ❌ | ❌ |\n| 2024.1.0 | ❌ | ❌ | ✅ | ✅ |\n| 2024.1   | ✅ | ✅ | ❌ | ❌ |\n| 2024.0.2 | ❌ | ❌ | ✅ | ✅ |\n| 2024.0.1 | ❌ | ❌ | ✅ | ✅ |\n| 2024.0   | ✅ | ✅ | ❌ | ❌ |\n| 2023.2.4 | ✅ | ✅ | ❌ | ❌ |\n| 2023.2.3 | ✅ | ✅ | ❌ | ❌ |\n| 2023.2.2 | ✅ | ✅ | ❌ | ❌ |\n| 2023.2.1 | ✅ | ✅ | ✅ | ✅ |\n| 2023.2.0 | ✅ | ✅ | ✅ | ✅ |\n| 2023.1.0 | ✅ | ✅ | ✅ | ✅ |\n| 2023.0.0 | ✅ | ✅ | ❌ | ❌ |\n| 2022.3.0 | ❌ | ❌ | ✅ | ✅ |\n| 2022.2.1 | ✅ | ✅ | ❌ | ❌ |\n| 2022.2.0 | ✅ | ✅ | ✅ | ✅ |\n| 2022.1.0 | ✅ | ✅ | ❌ | ❌ |\n| 2022.0.2 | ✅ | ✅ | ❌ | ❌ |\n| 2022.0.1 | ✅ | ✅ | ❌ | ❌ |\n| 2021.4.0 | ✅ | ✅ | ❌ | ❌ |\n| 2021.3.0 | ✅ | ✅ | ❌ | ❌ |\n| 2021.2.0 | ✅ | ✅ | ❌ | ❌ |\n| 2021.1.2 | ✅ | ✅ | ❌ | ❌ |\n| 2021.1.1 | ✅ | ✅ | ❌ | ❌ |\n\n---\n\n### `ifort`\n\n| Version | ubuntu-24.04 | ubuntu-22.04 | macos-26-intel | macos-15-intel | windows-2025 | windows-2022 |\n|---------|--------------|--------------|----------------|----------------|--------------|--------------|\n| latest  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 2021.13 | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |\n| 2021.12 | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |\n| 2021.11 | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |\n| 2021.10 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 2021.9  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 2021.8  | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 2021.7  | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |\n| 2021.6  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 2021.5  | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 2021.4  | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 2021.3  | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 2021.2  | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n| 2021.1  | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |\n\n---\n\n### `nvfortran`\n\n| Version | ubuntu-24.04 | ubuntu-22.04 | ubuntu-24.04-arm | ubuntu-22.04-arm |\n|---------|--------------|--------------|------------------|------------------|\n| latest | ✅ | ✅ | ✅ | ✅ |\n| 26.3   | ✅ | ✅ | ✅ | ✅ |\n| 26.1   | ✅ | ✅ | ✅ | ✅ |\n| 25.11  | ✅ | ✅ | ✅ | ✅ |\n| 25.9   | ✅ | ✅ | ✅ | ✅ |\n| 25.7   | ✅ | ✅ | ✅ | ✅ |\n| 25.5   | ✅ | ✅ | ✅ | ✅ |\n| 25.3   | ✅ | ✅ | ✅ | ✅ |\n| 25.1   | ✅ | ✅ | ✅ | ✅ |\n| 24.11  | ✅ | ✅ | ✅ | ✅ |\n| 24.9   | ✅ | ✅ | ✅ | ✅ |\n| 24.7   | ✅ | ✅ | ✅ | ✅ |\n| 24.5   | ✅ | ✅ | ✅ | ✅ |\n| 24.3   | ✅ | ✅ | ✅ | ✅ |\n| 24.1   | ✅ | ✅ | ✅ | ✅ |\n| 23.11  | ✅ | ✅ | ✅ | ✅ |\n| 23.9   | ✅ | ✅ | ✅ | ✅ |\n| 23.7   | ✅ | ✅ | ✅ | ✅ |\n| 23.5   | ✅ | ✅ | ✅ | ✅ |\n| 23.3   | ✅ | ✅ | ✅ | ✅ |\n| 23.1   | ✅ | ✅ | ✅ | ✅ |\n| 22.11  | ✅ | ✅ | ✅ | ✅ |\n| 22.9   | ✅ | ✅ | ✅ | ✅ |\n| 22.7   | ✅ | ✅ | ✅ | ✅ |\n| 22.5   | ✅ | ✅ | ✅ | ✅ |\n| 22.3   | ✅ | ✅ | ✅ | ✅ |\n| 22.2   | ✅ | ✅ | ✅ | ✅ |\n| 22.1   | ✅ | ✅ | ✅ | ✅ |\n| 21.11  | ✅ | ✅ | ✅ | ✅ |\n| 21.9   | ✅ | ✅ | ✅ | ✅ |\n| 21.7   | ✅ | ✅ | ✅ | ✅ |\n| 21.5   | ✅ | ✅ | ✅ | ✅ |\n| 21.3   | ✅ | ✅ | ✅ | ✅ |\n| 21.2   | ✅ | ✅ | ✅ | ✅ |\n| 21.1   | ❌ | ❌ | ✅ | ✅ |\n| 20.11  | ✅ | ✅ | ✅ | ✅ |\n\n---\n\n### `aocc`\n\n| Version | ubuntu-24.04 | ubuntu-22.04 |\n|---------|--------------|--------------|\n| latest  | ✅ | ✅ |\n| 5.1     | ✅ | ✅ |\n| 5.0     | ✅ | ✅ |\n| 4.2     | ✅ | ✅ |\n| 4.1     | ✅ | ✅ |\n\n---\n\n### `lfortran`\n\n| Version | ubuntu-24.04 | ubuntu-22.04 | macos-26 | macos-26-intel | macos-15 | macos-15-intel | macos-14 | windows-2025 | windows-2022 | windows-2025 (ucrt64) | windows-2022 (ucrt64) | windows-2025 (clang64) | windows-2022 (clang64) |\n|---------|--------------|--------------|----------|----------------|----------|----------------|----------|--------------|--------------|----------------------|----------------------|----------------------|----------------------|\n| latest  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 0.63.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 0.62.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 0.61.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 0.60.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 0.59.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 0.58.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 0.57.0  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n\n---\n\n\n### `flang` (LLVM Flang)\n\n| Version | ubuntu-24.04 | ubuntu-22.04 | ubuntu-24.04-arm | ubuntu-22.04-arm | macos-26 | macos-26-intel | macos-15 | macos-15-intel | macos-14 | windows-2025 | windows-2022 | windows-11-arm | windows-2025 (ucrt64) | windows-2022 (ucrt64) | windows-2025 (clang64) | windows-2022 (clang64) |\n|---------|--------------|--------------|------------------|------------------|----------|----------------|----------|----------------|----------|--------------|--------------|----------------|----------------------|----------------------|----------------------|----------------------|\n| latest  | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |\n| 22      | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 21      | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 20      | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |\n| 19      | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| 18      | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| 17      | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |\n| 16      | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |\n\n\u003e Specific patch versions (e.g. `21.1.6`) are also accepted on macOS and Windows runners and are validated against available GitHub releases. If the requested patch does not exist, an error is thrown. Patches aren't specifically tested.\n\n## Examples\n\n### Basic usage\n\n```yaml\nsteps:\n  - uses: actions/checkout@v4\n  - uses: minhqdao/setup-fortran@v1\n  - run: ${{ env.FC }} hello.f90 -o hello\n```\n\nThis defaults to `gfortran` and the newest version available on that platform.\n\n### Specific version\n\n```yaml\n- uses: minhqdao/setup-fortran@v1\n  with:\n    compiler: ifx\n    version: \"2026.0\"\n```\n\n### Matrix build\n\n```yaml\nstrategy:\n  matrix:\n    os: [ubuntu-latest, macos-latest, windows-latest]\n    toolchain:\n      - { compiler: gfortran, version: \"15\" }\n      - { compiler: nvfortran, version: \"26.3\" }\n      - { compiler: lfortran, version: \"0.63.0\" }\n    exclude:\n      - os: macos-latest\n        toolchain: { compiler: nvfortran, version: \"26.3\"}\njobs:\n  test:\n    runs-on: ${{ matrix.os }}\n    steps:\n      - uses: actions/checkout@v6\n      - uses: minhqdao/setup-fortran@v1\n        with:\n          compiler: ${{ matrix.toolchain.compiler }}\n          version: ${{ matrix.toolchain.version }}\n      - run: ${{ env.FC }} hello.f90 -o hello\n```\n\n### Windows with MSYS2\n\n```yaml\n- uses: minhqdao/setup-fortran@v1\n  with:\n    compiler: lfortran\n    msystem: ucrt64\n```\n\n## Outputs\n\n| Output | Description |\n|--------|-------------|\n| `version` | Resolved version of the installed compiler |\n\n## Environment variables set\n\n| Variable | Description |\n|----------|-------------|\n| `FC` | Path to the Fortran compiler |\n| `CC` | Path to the C compiler (not set for `lfortran`) |\n| `CXX` | Path to the C++ compiler (not set for `lfortran`) |\n| `FPM_FC` | Path to the Fortran compiler for fpm |\n| `FPM_CC` | Path to the C compiler for fpm (not set for `lfortran`) |\n| `FPM_CXX` | Path to the C++ compiler for fpm (not set for `lfortran`) |\n\n## Reporting\n\nPlease submit an [issue](https://github.com/minhqdao/setup-fortran/issues) if you find a problem with a specific configuration or you want features to be added.\n\n## License\n\n[Apache-2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhqdao%2Fsetup-fortran","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhqdao%2Fsetup-fortran","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhqdao%2Fsetup-fortran/lists"}