Skip to content

Commit 90319a7

Browse files
committed
ci: work around centos7 deprecation
1 parent 262e139 commit 90319a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
, ADD_CABAL_ARGS: "--enable-split-sections"
103103
},
104104
{ image: "centos:7"
105-
, installCmd: "yum -y install epel-release && yum install -y"
105+
, installCmd: "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 -y install epel-release && yum install -y"
106106
, toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
107107
, DISTRO: "CentOS"
108108
, ARTIFACT: "x86_64-linux-centos7"
@@ -459,7 +459,7 @@ jobs:
459459
DISTRO: Fedora
460460
ARTIFACT: "x86_64-linux-fedora33"
461461
- image: centos:7
462-
installCmd: yum -y install epel-release && yum install -y
462+
installCmd: 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 -y install epel-release && yum install -y
463463
toolRequirements: autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf tree
464464
DISTRO: CentOS
465465
ARTIFACT: "x86_64-linux-centos7"
@@ -754,7 +754,7 @@ jobs:
754754
DISTRO: Fedora
755755
ARTIFACT: "x86_64-linux-fedora33"
756756
- image: centos:7
757-
installCmd: yum -y install epel-release && yum install -y
757+
installCmd: 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 -y install epel-release && yum install -y
758758
toolRequirements: autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf tree
759759
DISTRO: CentOS
760760
ARTIFACT: "x86_64-linux-centos7"

0 commit comments

Comments
 (0)