Skip to content

Commit eb78994

Browse files
committed
CI: Add LFortran
1 parent 8a788db commit eb78994

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ jobs:
7373
error_stop_code: 128
7474
container: intel/fortran-essentials:2025.0.0-0-devel-ubuntu22.04
7575

76+
# --- LFortran coverage ---
77+
78+
# https://hub.docker.com/r/phhargrove/lfortran/tags
79+
- os: ubuntu-24.04
80+
compiler: lfortran
81+
version: 0.54.0
82+
container: phhargrove/lfortran:0.54.0-1
83+
7684
container:
7785
image: ${{ matrix.container }}
7886

@@ -122,6 +130,9 @@ jobs:
122130
echo "FPM_FC=flang-new" >> "$GITHUB_ENV" ; \
123131
elif test "$FC" = "ifx" ; then \
124132
echo "FPM_FC=ifx" >> "$GITHUB_ENV" ; \
133+
elif test "$FC" = "lfortran" ; then \
134+
echo "FPM_FC=lfortran" >> "$GITHUB_ENV" ; \
135+
echo "FFLAGS=--cpp $FFLAGS" >> "$GITHUB_ENV" ; \
125136
else \
126137
echo "FPM_FC=gfortran-${COMPILER_VERSION}" >> "$GITHUB_ENV" ; \
127138
echo "FFLAGS=-ffree-line-length-0 $FFLAGS" >> "$GITHUB_ENV" ; \

0 commit comments

Comments
 (0)