mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-18 20:02:36 +08:00
ci: Update config
This commit is contained in:
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -266,6 +266,16 @@ jobs:
|
|||||||
if: startsWith(matrix.container, 'debian:9') || startsWith(matrix.container, 'debian:10')
|
if: startsWith(matrix.container, 'debian:9') || startsWith(matrix.container, 'debian:10')
|
||||||
- name: Install requirements (centos)
|
- name: Install requirements (centos)
|
||||||
run: |
|
run: |
|
||||||
|
retry() {
|
||||||
|
for i in {1..10}; do
|
||||||
|
if "$@"; then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
sleep "${i}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
# In CentOS, the old repositories is removed from the main mirrors just after EoL.
|
# In CentOS, the old repositories is removed from the main mirrors just after EoL.
|
||||||
# https://github.com/rust-lang/rust/pull/126352
|
# https://github.com/rust-lang/rust/pull/126352
|
||||||
sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
|
sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
|
||||||
@@ -273,15 +283,15 @@ jobs:
|
|||||||
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
|
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
|
||||||
if [[ "${CONTAINER}" == "centos:6" ]]; then
|
if [[ "${CONTAINER}" == "centos:6" ]]; then
|
||||||
# CentOS 6's curl (7.19.7) has no curl has no --proto/--tlsv1.2.
|
# CentOS 6's curl (7.19.7) has no curl has no --proto/--tlsv1.2.
|
||||||
yum install -y gcc openssl-devel
|
retry yum install -y gcc openssl-devel
|
||||||
curl -fsSL --retry 10 https://curl.se/download/curl-7.34.0.tar.gz | tar xzf -
|
retry curl -fsSL --retry 10 https://curl.se/download/curl-7.34.0.tar.gz | tar xzf -
|
||||||
cd -- curl-*
|
cd -- curl-*
|
||||||
./configure --prefix=/usr/local --with-ssl
|
./configure --prefix=/usr/local --with-ssl
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
# for checkout-action https://github.com/taiki-e/checkout-action/blob/v1.3.0/.github/workflows/ci.yml#L135-L143
|
# for checkout-action https://github.com/taiki-e/checkout-action/blob/v1.3.0/.github/workflows/ci.yml#L135-L143
|
||||||
yum install -y openssh-clients perl perl-Error perl-TermReadKey rsync
|
retry yum install -y openssh-clients perl perl-Error perl-TermReadKey rsync
|
||||||
rpm -i \
|
retry rpm -i \
|
||||||
https://vault.ius.io/el6/x86_64/packages/p/perl-Git18-1.8.5.5-4.ius.el6.noarch.rpm \
|
https://vault.ius.io/el6/x86_64/packages/p/perl-Git18-1.8.5.5-4.ius.el6.noarch.rpm \
|
||||||
https://vault.ius.io/el6/x86_64/packages/g/git18-1.8.5.5-4.ius.el6.x86_64.rpm
|
https://vault.ius.io/el6/x86_64/packages/g/git18-1.8.5.5-4.ius.el6.x86_64.rpm
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user