From 897b5504fdd7c279242bfd5141bd037065f73754 Mon Sep 17 00:00:00 2001 From: Runzhi He Date: Mon, 15 Jul 2024 16:39:57 +0800 Subject: [PATCH] fix: mirrorlist.centos.org no host CentOS 7 has reached EOL on June 30, 2024, we need to switch to vault.centos.org to get the CentOS 7 based workflows working --- .github/workflows/build-wheel.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 03ff077..d8c1d30 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -33,7 +33,10 @@ jobs: # force manylinux2014 to avoid compatibility issues on RHEL 7 CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 # install required dependencies: bz2 - CIBW_BEFORE_ALL: yum install -y bzip2-devel + CIBW_BEFORE_ALL: | + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + yum install -y bzip2-devel - name: Upload wheels uses: actions/upload-artifact@v2