From a3f78f1fa0f633cac619de3cf04bebd2999b8f1d Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 5 Jun 2024 16:13:15 +0200
Subject: [PATCH] [ci] Upgrade image in which linux are built to get newer gcc.

See https://github.com/pypa/manylinux:

From manylinux2014 to manylinux_2_28. Requires pip 20.3.
---
 pyproject.toml                   | 6 ++----
 scripts/ci/jobs/build-wheels.yml | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 036b6d9a14b..b0863d9c4c8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -59,10 +59,8 @@ test-command = "pytest {project}/Tests/Python"
 build-verbosity = 1
 
 [tool.cibuildwheel.linux]
-# quay.io/pypa/manylinux_2_28 works too
-manylinux-x86_64-image = "quay.io/pypa/manylinux2014_x86_64"
-manylinux-aarch64-image = "quay.io/pypa/manylinux2014_x86_64"
-before-all = "yum install -y ccache"
+manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64"
+before-all = "dnf install -y epel-release && dnf install -y ccache"
 # See https://github.com/NixOS/patchelf/issues/446, wait for patchelf 0.19
 before-build = "pipx install --force 'patchelf<0.17'"
 environment-pass = [
diff --git a/scripts/ci/jobs/build-wheels.yml b/scripts/ci/jobs/build-wheels.yml
index 923d7dcf4b0..c8c1199ab09 100644
--- a/scripts/ci/jobs/build-wheels.yml
+++ b/scripts/ci/jobs/build-wheels.yml
@@ -111,4 +111,4 @@ test notebooks via wheel:
     - pip install -r requirements.txt
     - pip install --force-reinstall -r requirements-gmsh-nox.txt
     - pip install -r requirements-dev.txt
-    - pip install ${CI_PROJECT_DIR}/wheelhouse/ogs-*-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
+    - pip install ${CI_PROJECT_DIR}/wheelhouse/ogs-*-cp310-cp310-manylinux_2_28_x86_64.whl
-- 
GitLab