Skip to content

Commit bbff170

Browse files
authored
Merge pull request #100 from bonachea/ci-2026-11
[NO REVIEW] CI: misc updates
2 parents ca647a2 + 99ecce1 commit bbff170

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ jobs:
273273
retry sudo apt-get update
274274
#sudo apt list -a 'gfortran-*'
275275
retry sudo apt install -y build-essential
276+
[[ ${{ matrix.compiler }} == 'gfortran' ]] # assert no container means gfortran
276277
if [[ ${COMPILER_VERSION} -lt 15 ]] || type -p gfortran-${COMPILER_VERSION} ; then
277278
retry sudo apt install -y gfortran-${COMPILER_VERSION}
278279
else
@@ -287,9 +288,9 @@ jobs:
287288
: Homebrew GCC@15 needs binutils 2.44+
288289
HOMEBREW_BINUTILS=$(ls -d ${HOMEBREW_PREFIX}/Cellar/binutils/2.*/bin )
289290
ls -al ${HOMEBREW_BINUTILS}
290-
echo "FFLAGS=$FFLAGS -B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV"
291-
echo "CFLAGS=$CFLAGS -B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV"
292-
echo "CXXFLAGS=$CXXFLAGS -B ${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV"
291+
echo "FFLAGS=$FFLAGS -B${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV"
292+
echo "CFLAGS=$CFLAGS -B${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV"
293+
echo "CXXFLAGS=$CXXFLAGS -B${HOMEBREW_BINUTILS}" >> "$GITHUB_ENV"
293294
fi
294295
295296
- name: Install Ubuntu Container Dependencies
@@ -322,8 +323,9 @@ jobs:
322323
- name: Install macOS Dependencies
323324
if: contains(matrix.os, 'macos')
324325
run: |
325-
retry brew update \
326-
2>&1 | perl -pe "$BREW_WARNING_FILTER" ; test ${PIPESTATUS[0]} = 0
326+
# Brew update takes a VERY long time to do cleanup and we don't care
327+
#retry brew update \
328+
# 2>&1 | perl -pe "$BREW_WARNING_FILTER" ; test ${PIPESTATUS[0]} = 0
327329
# fpm binary distribution for macOS requires gfortran shared libraries from gcc@12
328330
retry brew install gcc@12 \
329331
2>&1 | perl -pe "$BREW_WARNING_FILTER" ; test ${PIPESTATUS[0]} = 0
@@ -383,7 +385,7 @@ jobs:
383385
GFORTRAN=gfortran$suff
384386
if type -P $GFORTRAN ; then break ; fi
385387
done
386-
[[ -n "$GFORTRAN" ]]
388+
type -p "$GFORTRAN"
387389
mkdir -p fpm-temp/bin
388390
cd fpm-temp
389391
curl $CURL_OPTIONS https://github.com/fortran-lang/fpm/releases/download/v$FPM_VERSION/fpm-$FPM_VERSION.F90 -o fpm.F90

0 commit comments

Comments
 (0)