Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@ jobs:
version: 2025.2.0
container: intel/fortran-essentials:2025.2.0-0-devel-ubuntu24.04

# --- LFortran coverage ---

# https://hub.docker.com/r/phhargrove/lfortran/tags
#- os: ubuntu-24.04
# compiler: lfortran
# version: 0.54.0
# container: phhargrove/lfortran:0.54.0-1

# https://github.com/lfortran/lfortran/pkgs/container/lfortran
- os: ubuntu-22.04
compiler: lfortran
version: latest
container: ghcr.io/lfortran/lfortran:latest
extra_flags: --separate-compilation --realloc-lhs-arrays

container:
image: ${{ matrix.container }}

Expand Down Expand Up @@ -129,6 +144,12 @@ jobs:
set -x
apt update
apt install -y build-essential pkg-config make git curl
# Add container lfortran to PATH:
if test "$FC" = "lfortran"; then \
echo "/app/bin" >> "$GITHUB_PATH" ; \
ls -alh /app/bin ; \
ls -alh /app/share/lfortran/lib/ ; \
fi

- name: Install macOS Dependencies
if: contains(matrix.os, 'macos')
Expand Down Expand Up @@ -168,6 +189,7 @@ jobs:
elif test "$FC" = "lfortran" ; then \
echo "FPM_FC=lfortran" >> "$GITHUB_ENV" ; \
echo "FFLAGS=--cpp $FFLAGS" >> "$GITHUB_ENV" ; \
echo "FPM_FLAGS=--profile debug --verbose" >> "$GITHUB_ENV" ; : fpm 0.13 workaround ; \
else \
echo "FPM_FC=gfortran-${COMPILER_VERSION}" >> "$GITHUB_ENV" ; \
echo "FFLAGS=-ffree-line-length-0 $FFLAGS" >> "$GITHUB_ENV" ; \
Expand Down