From 509a1e8a4370be1845d0af057fa0af0bb9be6feb Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 4 Jul 2024 10:45:59 +0900 Subject: [PATCH] ci: Update centos:7 to use vault repos --- .github/.cspell/project-dictionary.txt | 3 +++ .github/workflows/ci.yml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/.cspell/project-dictionary.txt b/.github/.cspell/project-dictionary.txt index cfea7281..efbe57f3 100644 --- a/.github/.cspell/project-dictionary.txt +++ b/.github/.cspell/project-dictionary.txt @@ -15,12 +15,15 @@ endgroup epel espup etag +fastestmirror grcov knope linkcheck mdbook microdnf +mirrorlist nextest +pluginconf protoc pubkey pwsh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fb18e9c..96a56621 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,6 +140,14 @@ jobs: timeout-minutes: 60 container: ${{ matrix.container }} steps: + - name: Install requirements (centos) + run: | + set -eEuxo pipefail + # https://github.com/rust-lang/rust/pull/126352 + sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \ + -e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!' + sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf + if: startsWith(matrix.container, 'centos') - name: Install requirements (alpine) run: apk --no-cache add bash shell: sh