gh-ci: fix centos EOL

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2022-02-01 14:26:33 +01:00
parent 8d9b042c7b
commit 98050428df
1 changed files with 8 additions and 1 deletions

View File

@ -51,9 +51,16 @@ jobs:
if: ${{matrix.os == 'ubuntu' || matrix.os == 'debian'}} if: ${{matrix.os == 'ubuntu' || matrix.os == 'debian'}}
run: apt -qqy update && apt -qqy install wget locales && locale-gen $LANG run: apt -qqy update && apt -qqy install wget locales && locale-gen $LANG
- name: Install utils
if: ${{matrix.os == 'centos' && matrix.os-version == '8'}}
run: |
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-*
- name: Install utils - name: Install utils
if: ${{matrix.os == 'centos'}} if: ${{matrix.os == 'centos'}}
run: yum -y install wget run: |
yum -y install wget
- name: Install utils - name: Install utils
if: ${{matrix.os == 'fedora'}} if: ${{matrix.os == 'fedora'}}