Skip to content

Commit

Permalink
modify centos repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Sep 20, 2024
1 parent 19b1e2e commit c259dac
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit c259dac

Please sign in to comment.