Skip to content

Commit

Permalink
Use devtoolset 11 for CentOS (#911)
Browse files Browse the repository at this point in the history
Update to devtoolset 11
  • Loading branch information
JasonMarechal25 authored Sep 4, 2024
1 parent f282d02 commit 130cd1e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
workdir: docker
dockerfile: centos7-system-deps
cache: false
tags: latest,1.0.0
tags: latest,1.1.0

versions:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:

steps:
- run: |
source /opt/rh/devtoolset-10/enable
source /opt/rh/devtoolset-11/enable
echo $PATH >> $GITHUB_PATH
- name: Get release
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

- name: Configure
run: |
source /opt/rh/devtoolset-10/enable
source /opt/rh/devtoolset-11/enable
cmake -B _build -S . \
-DBUILD_TESTING=ON \
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/deps \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_centos_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
workdir: docker
dockerfile: centos7-system-deps
cache: false
tags: latest,1.0.0
tags: latest,1.1.0
18 changes: 13 additions & 5 deletions docker/centos7-system-deps
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
FROM centos:7

# Install requirements: update repo
RUN yum update -y

# Install requirements : install epel
RUN yum install -y epel-release

RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo &&\
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo &&\
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo &&\
yum update -y

#not a typo, centos-release-scl is needed to install devtoolset-10 but introduce deprecated mirror
RUN yum install -y epel-release centos-release-scl

RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo &&\
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo &&\
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

RUN \
yum install -y wget git epel-release redhat-lsb-core gcc gcc-c++ make centos-release-scl scl-utils &&\
yum install -y devtoolset-10-gcc* environment-modules rpm-build zlib-devel &&\
yum install -y devtoolset-11-gcc* environment-modules rpm-build zlib-devel &&\
yum install -y doxygen graphviz &&\
yum install -y install python3-devel && \
yum install -y libuuid-devel
Expand Down
3 changes: 1 addition & 2 deletions src/cpp/helpers/ArchiveReader.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#include "ArchiveReader.h"

#include <algorithm>
#include <iostream>
#include <iterator>
#include <regex>
#include <vector>
#include <mutex>

#include "LogUtils.h"

Expand Down
5 changes: 3 additions & 2 deletions src/cpp/helpers/ArchiveWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#include "ArchiveWriter.h"

#include <time.h>

#include <ctime>
#include <iostream>
#include <mutex>
#include <sstream>
#include <mutex>

#include "LogUtils.h"

ArchiveWriter::ArchiveWriter(const std::filesystem::path& archivePath)
: ArchiveIO(archivePath) {
Create();
Expand Down

0 comments on commit 130cd1e

Please sign in to comment.