Skip to content

Commit d185e8c

Browse files
authored
Merge pull request #270 from bonachea/ci-fix-flang-latest
[NO REVIEW]: CI: fix flang-latest, add GFortran 15.2 coverage
2 parents 61bb94c + 9e3e016 commit d185e8c

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [macos-13, macos-14, macos-15, macos-15-intel, ubuntu-24.04]
16+
os: [ macos-13, macos-14, macos-15, macos-15-intel, macos-26, ubuntu-24.04 ]
1717
compiler: [ gfortran ]
18-
version: [ 13, 14 ]
18+
version: [ 13, 14, 15 ]
1919
network: [ smp ]
2020
exclude:
21+
- os: macos-13 # macos-13 brew is currently Gfortran 15.1.0 which Veggies does not support
22+
version: 15
2123
- os: macos-15 # gcc-13 broken on macos-15
22-
compiler: gfortran
2324
version: 13
24-
network: smp
2525
include:
2626
# --- flang coverage ---
2727
- os: macos-14
@@ -43,7 +43,7 @@ jobs:
4343
native_multi_image: 1
4444
FFLAGS: -fcoarray
4545
# https://hub.docker.com/r/snowstep/llvm/tags
46-
container: snowstep/llvm:bookworm
46+
container: snowstep/llvm:noble
4747
- os: ubuntu-24.04
4848
compiler: flang
4949
version: 21
@@ -73,6 +73,10 @@ jobs:
7373
compiler: gfortran
7474
version: 14
7575
network: udp
76+
- os: ubuntu-24.04
77+
compiler: gfortran
78+
version: 15
79+
network: udp
7680
- os: ubuntu-24.04
7781
compiler: gfortran
7882
version: 14
@@ -101,7 +105,7 @@ jobs:
101105
network: udp
102106
native_multi_image: 1
103107
FFLAGS: -fcoarray
104-
container: snowstep/llvm:bookworm
108+
container: snowstep/llvm:noble
105109

106110
container:
107111
image: ${{ matrix.container }}
@@ -132,6 +136,9 @@ jobs:
132136
echo "FC=flang-new" >> "$GITHUB_ENV"
133137
echo "CC=clang" >> "$GITHUB_ENV"
134138
echo "CXX=clang++" >> "$GITHUB_ENV"
139+
if [[ "${{ matrix.container }}" =~ "snowstep/llvm" ]] ; then \
140+
echo "LD_LIBRARY_PATH=/usr/lib/llvm-22/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV" ; \
141+
fi
135142
136143
- name: Set Caffeine variables
137144
run: |
@@ -157,7 +164,25 @@ jobs:
157164
run: |
158165
set -x
159166
sudo apt update
160-
sudo apt install -y build-essential gfortran-${COMPILER_VERSION} g++-${COMPILER_VERSION} pkg-config make
167+
sudo apt install -y build-essential pkg-config make
168+
if [[ ${COMPILER_VERSION} < 15 ]] ; then \
169+
sudo apt install -y gfortran-${COMPILER_VERSION} g++-${COMPILER_VERSION} ; \
170+
else \
171+
curl -L https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh -o install-homebrew.sh ; \
172+
chmod +x install-homebrew.sh ; \
173+
env CI=1 ./install-homebrew.sh ; \
174+
HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew" ; \
175+
${HOMEBREW_PREFIX}/bin/brew install -v gcc@${COMPILER_VERSION} binutils ; \
176+
ls -al ${HOMEBREW_PREFIX}/bin ; \
177+
echo "PATH=${HOMEBREW_PREFIX}/bin:${PATH}" >> "$GITHUB_ENV" ; \
178+
: Homebrew GCC@15 needs binutils 2.44+ ; \
179+
HOMEBREW_BINUTILS=$(ls -d ${HOMEBREW_PREFIX}/Cellar/binutils/2.*/bin ) ; \
180+
ls -al ${HOMEBREW_BINUTILS} ; \
181+
echo "FFLAGS=${FFLAGS:+"$FFLAGS" }-B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV" ; \
182+
echo "CFLAGS=${CFLAGS:+"$CFLAGS" }-B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV" ; \
183+
echo "CXXFLAGS=${CXXFLAGS:+"$CXXFLAGS" }-B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV" ; \
184+
echo "LDFLAGS=${LDFLAGS:+"$LDFLAGS" }-B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV" ; \
185+
fi
161186
162187
- name: Install Ubuntu Container Dependencies
163188
if: ${{ contains(matrix.os, 'ubuntu') && matrix.container != '' && !contains(matrix.container, 'phhargrove') }}

manifest/fpm.toml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ copyright = "2021-2025 The Regents of the University of California, through Lawr
77

88
[dev-dependencies]
99
assert = {git = "https://github.com/berkeleylab/assert.git", tag = "3.0.0"}
10-
veggies = {git = "https://gitlab.com/everythingfunctional/veggies", tag = "v1.1.3"}
10+
veggies = {git = "https://gitlab.com/everythingfunctional/veggies", tag = "v1.2.1"}
1111
iso_varying_string = {git = "https://gitlab.com/everythingfunctional/iso_varying_string.git", tag = "v3.0.4"}
1212

1313
[install]

0 commit comments

Comments
 (0)