From 0594e65d34401b41a51ccade0afe84d7a83846ea Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Mon, 30 Sep 2024 20:41:56 -0400 Subject: [PATCH] Switch to gcc-13 on CI --- .github/workflows/main.yml | 8 ++++---- docker/AlmaLinux8.Dockerfile | 8 ++++---- docker/CentOS7.Dockerfile | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45f454bf..1f48b48f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,8 +34,8 @@ jobs: name: "Ubuntu - GCC", artifact: "linux-gcc.tar.xz", os: ubuntu-latest, - cc: "gcc-11", - cxx: "g++-11", + cc: "gcc-13", + cxx: "g++-13", build-type: "Release", build-code: "Ubuntu", cache-type: "Linux", @@ -46,8 +46,8 @@ jobs: name: "AlmaLinux 8 - GCC", artifact: "linux-gcc.tar.xz", os: ubuntu-latest, - cc: "gcc-11", - cxx: "g++-11", + cc: "gcc-13", + cxx: "g++-13", build-type: "Release", build-code: "AlmaLinux8", cache-type: "Linux", diff --git a/docker/AlmaLinux8.Dockerfile b/docker/AlmaLinux8.Dockerfile index 45a0448b..a7b0edbd 100644 --- a/docker/AlmaLinux8.Dockerfile +++ b/docker/AlmaLinux8.Dockerfile @@ -12,8 +12,8 @@ RUN dnf install -y -q \ git \ git-lfs \ wget \ - gcc-toolset-11 \ - gcc-toolset-11-libubsan-devel \ + gcc-toolset-13 \ + gcc-toolset-13-libubsan-devel \ make \ doxygen \ curl-devel \ @@ -29,8 +29,8 @@ RUN dnf install -y -q \ sqlite-devel \ xz-devel -# Enables gcc 11 for use within the docker image. -RUN echo "source /opt/rh/gcc-toolset-11/enable" >> /etc/bashrc +# Enables gcc 13 for use within the docker image. +RUN echo "source /opt/rh/gcc-toolset-13/enable" >> /etc/bashrc SHELL ["/bin/bash", "--login", "-c"] # Install newer version of Python diff --git a/docker/CentOS7.Dockerfile b/docker/CentOS7.Dockerfile index cedf418b..5dc92b5a 100644 --- a/docker/CentOS7.Dockerfile +++ b/docker/CentOS7.Dockerfile @@ -10,10 +10,10 @@ RUN yum install -y -q \ centos-release-scl RUN yum install -y -q \ - # for gcc-11 - devtoolset-11-toolchain \ + # for gcc-13 + devtoolset-13-toolchain \ # for ubsan - devtoolset-11-libubsan-devel \ + devtoolset-13-libubsan-devel \ # get a newer version of git and git-lfs # CentOS 7 comes with version 1.8.3.1 by default, which is from 2013! rh-git218 \ @@ -34,11 +34,11 @@ RUN yum install -y -q \ xz-devel \ # Create links to some of the custom packages -RUN update-alternatives --install /usr/bin/gcc gcc /opt/rh/devtoolset-11/root/usr/bin/gcc 100 && \ - update-alternatives --install /usr/bin/g++ g++ /opt/rh/devtoolset-11/root/usr/bin/g++ 100 && \ - update-alternatives --install /usr/bin/cc cc /opt/rh/devtoolset-11/root/usr/bin/gcc 100 && \ - update-alternatives --install /usr/bin/c++ c++ /opt/rh/devtoolset-11/root/usr/bin/g++ 100 && \ - update-alternatives --install /usr/bin/gcov gcov /opt/rh/devtoolset-11/root/usr/bin/gcov 100 && \ +RUN update-alternatives --install /usr/bin/gcc gcc /opt/rh/devtoolset-13/root/usr/bin/gcc 100 && \ + update-alternatives --install /usr/bin/g++ g++ /opt/rh/devtoolset-13/root/usr/bin/g++ 100 && \ + update-alternatives --install /usr/bin/cc cc /opt/rh/devtoolset-13/root/usr/bin/gcc 100 && \ + update-alternatives --install /usr/bin/c++ c++ /opt/rh/devtoolset-13/root/usr/bin/g++ 100 && \ + update-alternatives --install /usr/bin/gcov gcov /opt/rh/devtoolset-13/root/usr/bin/gcov 100 && \ update-alternatives --install /usr/bin/git git /opt/rh/rh-git218/root/usr/bin/git 100 && \ update-alternatives --install /usr/bin/git-lfs git-lfs /opt/rh/rh-git218/root/usr/bin/git-lfs 100