From 6c0cd938501d4d5df1c19dcd369667f95a92c5eb Mon Sep 17 00:00:00 2001 From: Kyle Mandli Date: Thu, 5 Nov 2026 10:17:33 -0500 Subject: [PATCH] CI: move Linux toolchain to gcc 15 and unpin ubuntu-latest Matches the distro gfortran on ubuntu-26.04 and the macOS nightly. Prints the compiler's default target so image changes are visible. Refs #767. Signed-off-by: Kyle Mandli Assisted-by: claude claude-opus-5-5 --- .github/workflows/testing.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 184c7f73..d460d0be 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -41,15 +41,11 @@ jobs: matrix: # Linux only on the per-PR path; macOS tests run nightly (nightly.yml) # where its 10x minute multiplier is paid once a day. - # TEMPORARY: pinned to ubuntu-24.04 because test_shocksine fails in the - # gcc opt build on ubuntu-26.04 (now ubuntu-latest). Unpin back to - # ubuntu-latest (here and in the Coveralls `if:` below) when resolving - # https://github.com/clawpack/pyclaw/issues/767 - os: [ubuntu-24.04] + os: [ubuntu-latest] python-version: ["3.12"] build: [debug, opt] toolchain: - - {compiler: gcc, version: 14} + - {compiler: gcc, version: 15} # - {compiler: intel, version: '2025.0'} # - {compiler: intel-classic, version: '2021.10'} # - {compiler: nvidia-hpc, version: '25.1'} # does not build python @@ -74,6 +70,13 @@ jobs: compiler: ${{ matrix.toolchain.compiler }} version: ${{ matrix.toolchain.version }} + # Record the compiler and its default target (-march/-mtune); runner image + # changes can silently change these (see clawpack/pyclaw#767). + - name: Show compiler configuration + run: | + ${FC} --version + ${FC} -Q --help=target | grep -E '^ +-m(arch|tune)=' || true + - name: Install python dependencies run: | python -m pip install --upgrade pip @@ -162,7 +165,7 @@ jobs: if-no-files-found: ignore - name: Upload to Coveralls - if: ${{ matrix.os == 'ubuntu-24.04' && matrix.toolchain.compiler == 'gcc' && matrix.build == 'opt' && matrix.python-version == '3.12' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.toolchain.compiler == 'gcc' && matrix.build == 'opt' && matrix.python-version == '3.12' }} run: | cd ${{ env.CLAW }}/pyclaw ls -l .coverage