File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -55,20 +55,29 @@ jobs:
55
55
container : centos:7
56
56
steps :
57
57
# Always install deps before invoking checkout action, to properly perform a full clone.
58
- - name : Install build dependencies
58
+ - name : Fix mirrors to use vault.centos.org
59
59
run : |
60
- # fix broken mirrors
61
60
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
62
61
sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
63
62
sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
64
-
63
+
64
+ - name : Install scl repos
65
+ run : |
65
66
yum -y install centos-release-scl
66
-
67
- # fix broken mirrors (again)
67
+
68
+ - name : Fix new mirrors to use vault.centos.org
69
+ run : |
68
70
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
69
71
sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
70
72
sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
71
-
73
+
74
+ - name : Fix arm64 scl repos to use correct mirror
75
+ if : inputs.arch == 'aarch64'
76
+ run : |
77
+ sed -i 's/vault.centos.org\/centos/vault.centos.org\/altarch/g' /etc/yum.repos.d/CentOS-SCLo-scl*.repo
78
+
79
+ - name : Install build deps
80
+ run : |
72
81
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
73
82
source /opt/rh/devtoolset-9/enable
74
83
yum install -y wget git make m4 rpm-build elfutils-libelf-devel perl-IPC-Cmd devtoolset-9-libasan-devel devtoolset-9-libubsan-devel
You can’t perform that action at this time.
0 commit comments