# GitHub Action: Setup Fortran with Conda

**URL:** <https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869>\
**Category:** Announcements\
**Created:** [June 20, 2025, 9:59am UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869 "2025-06-20T09:59:03Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ali/32/751_2.png) [@Ali](https://fortran-lang.discourse.group/u/Ali)\
**Post date:** [February 27, 2026, 10:27pm UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869/41 "2026-02-27T22:27:26Z")

</div>

Thanks @jacobwilliams!

I believe the [latest version](https://github.com/gha3mi/setup-fortran-conda) is now the most stable and fastest release so far.  
CI tests with all the latest available compilers have passed.

I also added a new optional input (`fpm-version`) to pin the fpm version.

| OS | Compiler | Version | fpm | cmake | meson |
| --- | --- | --- | --- | --- | --- |
| ubuntu 24.04 | `flang-new` | 21.1.8 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| ubuntu 24.04 | `gfortran` | 15.2.0 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| ubuntu 24.04 | `ifx` | 2025.3.2 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| ubuntu 24.04 | `lfortran` | 0.60.0 | 0.12.0 ✅ | 4.2.3 ✅ | — |
| ubuntu 24.04 | `nvfortran` | 26.1 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| macos 15 | `gfortran` | 15.2.0 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| macos 15 | `lfortran` | 0.60.0 | 0.12.0 ✅ | 4.2.3 ✅ | — |
| windows 2025 | `flang-new` | 21.1.8 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| windows 2025 | `gfortran` | 15.2.0 | 0.13.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| windows 2025 | `ifx` | 2025.3.2 | 0.12.0 ✅ | 4.2.3 ✅ | 1.10.1 ✅ |
| windows 2025 | `lfortran` | 0.54.0 | 0.12.0 ✅ | 4.2.3 ✅ | — |

---

<div class="post-metadata">

**Author:** ![jorgeg](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/jorgeg/32/6835_2.png) [@jorgeg](https://fortran-lang.discourse.group/u/jorgeg)\
**Post date:** [February 28, 2026, 12:26am UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869/42 "2026-02-28T00:26:45Z")

</div>

damn son, this is great. thanks for the effort!

---

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [February 28, 2026, 9:48am UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869/43 "2026-02-28T09:48:48Z")

</div>

Great to see the green tick for LFortran too ([LFortran compiles fpm](https://fortran-lang.discourse.group/t/lfortran-compiles-fpm/10744))!

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [February 28, 2026, 3:08pm UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869/44 "2026-02-28T15:08:27Z")

</div>

I think in this thread it’s “fpm works with lfortran”, we don’t care that “lfortran also compiles fpm itself”. Or is the compiler used to bootstrap fpm at the CI?

---

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [February 28, 2026, 3:39pm UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869/45 "2026-02-28T15:39:32Z")

</div>

You are absolutely right. I made the wrong connection.

> [@certik](#):
>
> Or is the compiler used to bootstrap fpm at the CI?

That would be something for the CI in the fpm repository ([fpm/.github/workflows/CI.yml at main · fortran-lang/fpm · GitHub](https://github.com/fortran-lang/fpm/blob/main/.github/workflows/CI.yml)).

---

<div class="post-metadata">

**Author:** ![Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ali/32/751_2.png) [@Ali](https://fortran-lang.discourse.group/u/Ali)\
**Post date:** [May 29, 2026, 12:19pm UTC](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869/46 "2026-05-29T12:19:09Z")

</div>

The latest release of `setup-fortran-conda` now supports AOCC and AOMP on Linux.

It also adds [`fpm-modules`](https://github.com/davidpfister/fpm-modules) and [`fpm-deps`](https://github.com/ivan-pi/fpm-deps), which can inject dependency graphs into `README.md`.

The latest CI status is:

| OS | Compiler | Version | fpm | cmake | meson |
| --- | --- | --- | --- | --- | --- |
| ubuntu 24.04 | `aocc` | 5.2.0 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| ubuntu 24.04 | `aomp` | 23.0-0 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| ubuntu 24.04 | `flang-new` | 22.1.6 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| ubuntu 24.04 | `gfortran` | 15.2.0 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| ubuntu 24.04 | `ifx` | 2026.0.0 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| ubuntu 24.04 | `lfortran` | 0.63.0 | 0.12.0 ✅ | 4.3.3 ✅ | — |
| ubuntu 24.04 | `nvfortran` | 26.3 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| macos 15 | `gfortran` | 15.2.0 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| macos 15 | `lfortran` | 0.63.0 | 0.12.0 ✅ | 4.3.3 ✅ | — |
| windows 2025 | `flang-new` | 22.1.6 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| windows 2025 | `gfortran` | 15.2.0 | 0.13.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| windows 2025 | `ifx` | 2026.0.0 | 0.12.0 ✅ | 4.3.3 ✅ | 1.11.1 ✅ |
| windows 2025 | `lfortran` | 0.54.0 | 0.12.0 ✅ | 4.3.3 ✅ | — |

- There is also an example workflow showing usage with MKL and OpenBLAS here: [LightControl/.github/workflows/ci.yml at main · loiseaujc/LightControl · GitHub](https://github.com/loiseaujc/LightControl/blob/main/.github/workflows/ci.yml)

- @certik, do you have any suggestions regarding this issue with the `lfortran` conda-forge package? [win-64: installing `lfortran` with common build tools downgrades `lfortran` to 0.54.0 · Issue #136 · conda-forge/lfortran-feedstock · GitHub](https://github.com/conda-forge/lfortran-feedstock/issues/136)

[Previous page](https://fortran-lang.discourse.group/t/github-action-setup-fortran-with-conda/9869.md?page=2)
