From c259dac7925f50d0396d5f563729a66e1233358b Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Fri, 20 Sep 2024 03:53:13 +0000 Subject: [PATCH] modify centos repo --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 606c809495b9..ca36293552d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,6 +115,25 @@ jobs: options: --privileged steps: + - name: modify centos repo + if: matrix.package == 'rpm' && matrix.image == 'centos:7' + run: | + sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-Base.repo + sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo + sed -i 's|$releasever|7.9.2009|g' /etc/yum.repos.d/CentOS-Base.repo + sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo + sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo + sed -i 's|$releasever|7.9.2009|g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo + yum clean all + yum makecache + yum install -y centos-release-scl + yum install -y devtoolset-9 + scl enable devtoolset-9 bash + gcc --version + strings /opt/rh/devtoolset-9/root/usr/lib64/libstdc++.so.6 | grep GLIBCXX + yum install -y nodejs + node -v + - name: Early Rpm Setup if: matrix.package == 'rpm' && matrix.image != '' run: |