diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 606c809495b9..9c027934f376 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,6 +115,23 @@ jobs: options: --privileged steps: + - name: modify centos repo + if: matrix.package == 'rpm' && matrix.image == 'centos:7' + run: | + # Replace all occurrences of mirror.centos.org with vault.centos.org in all .repo files + for repo_file in /etc/yum.repos.d/*.repo; do + sed -i 's|mirror.centos.org|vault.centos.org|g' "$repo_file" + done + 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: |