Skip to content

Commit 0d2d545

Browse files
authored
Merge pull request #175 from bonachea/ci-lfortran
[NO REVIEW] CI: Update for Homebrew upgrade to flang-22, add LFortran
2 parents b29fe49 + d6cdbe7 commit 0d2d545

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323

2424
- os: macos-14
2525
compiler: flang
26-
version: 21
26+
version: 22
2727
- os: macos-15
2828
compiler: flang
29-
version: 21
29+
version: 22
3030
- os: macos-15-intel
3131
compiler: flang
32-
version: 21
32+
version: 22
3333
- os: macos-26
3434
compiler: flang
35-
version: 21
35+
version: 22
3636

3737
# https://hub.docker.com/r/snowstep/llvm/tags
3838
- os: ubuntu-24.04
@@ -92,6 +92,13 @@ jobs:
9292
# version: 0.54.0
9393
# container: phhargrove/lfortran:0.54.0-1
9494

95+
# https://github.com/lfortran/lfortran/pkgs/container/lfortran
96+
- os: ubuntu-22.04
97+
compiler: lfortran
98+
version: latest
99+
container: ghcr.io/lfortran/lfortran:latest
100+
extra_flags: --separate-compilation --realloc-lhs-arrays
101+
95102
container:
96103
image: ${{ matrix.container }}
97104

@@ -136,6 +143,12 @@ jobs:
136143
set -x
137144
apt update
138145
apt install -y build-essential pkg-config make git curl
146+
# Add container lfortran to PATH:
147+
if test "$FC" = "lfortran"; then \
148+
echo "/app/bin" >> "$GITHUB_PATH" ; \
149+
ls -alh /app/bin ; \
150+
ls -alh /app/share/lfortran/lib/ ; \
151+
fi
139152
140153
- name: Install macOS Dependencies
141154
if: contains(matrix.os, 'macos')
@@ -170,6 +183,7 @@ jobs:
170183
elif test "$FC" = "lfortran" ; then \
171184
echo "FPM_FC=lfortran" >> "$GITHUB_ENV" ; \
172185
echo "FFLAGS=--cpp $FFLAGS" >> "$GITHUB_ENV" ; \
186+
echo "FPM_FLAGS=--profile debug --verbose" >> "$GITHUB_ENV" ; : fpm 0.13 workaround ; \
173187
else \
174188
echo "FPM_FC=gfortran-${COMPILER_VERSION}" >> "$GITHUB_ENV" ; \
175189
echo "FFLAGS=-ffree-line-length-0 $FFLAGS" >> "$GITHUB_ENV" ; \

0 commit comments

Comments
 (0)