Skip to content

Commit

Permalink
Use devtoolset 11
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Sep 3, 2024
1 parent 830b9af commit c991b10
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 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

0 comments on commit c991b10

Please sign in to comment.