From 1ddadde63c60fb99f666e115b4bd52dc3b68456a Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 29 Nov 2025 18:03:47 +0100 Subject: [PATCH] Make sure the g++ version is modern enough where it is available but not the default (such as old Ubuntu LTS). --- .github/jobs/configure-checks/setup_configure_image.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/jobs/configure-checks/setup_configure_image.sh b/.github/jobs/configure-checks/setup_configure_image.sh index b3bdcad686..7d492454ec 100755 --- a/.github/jobs/configure-checks/setup_configure_image.sh +++ b/.github/jobs/configure-checks/setup_configure_image.sh @@ -10,6 +10,8 @@ case $distro_id in dnf install pkg-config make bats autoconf automake util-linux -y ;; *) apt-get update; apt-get full-upgrade -y + # Install g++-12 to make sure we can use -std=c++20 + version=$(g++ -dumpversion 2>/dev/null | awk -F'.' '{print $1}' 2>/dev/null || echo 0); [ "${version}" -lt 12 ] && apt install -y g++-12 apt-get install pkg-config make bats autoconf -y ;; esac