Skip to content

Commit 12c27aa

Browse files
committed
chore(ci): use correct vault mirror for arm64 scl repos.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent 71d82a3 commit 12c27aa

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/reusable_build_packages.yaml

+15-6
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,29 @@ jobs:
5555
container: centos:7
5656
steps:
5757
# 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
5959
run: |
60-
# fix broken mirrors
6160
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
6261
sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
6362
sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
64-
63+
64+
- name: Install scl repos
65+
run: |
6566
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: |
6870
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
6971
sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
7072
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: |
7281
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
7382
source /opt/rh/devtoolset-9/enable
7483
yum install -y wget git make m4 rpm-build elfutils-libelf-devel perl-IPC-Cmd devtoolset-9-libasan-devel devtoolset-9-libubsan-devel

0 commit comments

Comments
 (0)