Skip to content

Commit 27fddbb

Browse files
author
Lukas Hutak
committed
CI: replace CentOS 8 with CentOS 8 Stream
CentOS 8 is not supported by Red Hat anymore and its repositories are broken.
1 parent 9bff960 commit 27fddbb

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
image: ['ubuntu:18.04', 'ubuntu:20.04', 'debian:stretch', 'debian:buster', 'debian:bullseye', 'centos:7', 'centos:8']
11+
image:
12+
- 'ubuntu:18.04'
13+
- 'ubuntu:20.04'
14+
- 'debian:stretch'
15+
- 'debian:buster'
16+
- 'debian:bullseye'
17+
- 'centos:7'
18+
- 'quay.io/centos/centos:stream8'
1219

1320
name: Build on ${{ matrix.image }}
1421
container: ${{ matrix.image }}
@@ -24,7 +31,7 @@ jobs:
2431
env:
2532
DEBIAN_FRONTEND: noninteractive
2633
- name: Install dependencies (CentOS)
27-
if: startsWith(matrix.image, 'centos')
34+
if: contains(matrix.image, 'centos')
2835
run: |
2936
yum -y install epel-release
3037
yum -y install git gcc gcc-c++ cmake make libxml2-devel lz4-devel libzstd-devel

.github/workflows/package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ jobs:
5858
strategy:
5959
fail-fast: false
6060
matrix:
61-
image: ['centos:7', 'centos:8']
61+
image:
62+
- 'centos:7'
63+
- 'quay.io/centos/centos:stream8'
6264

6365
name: Build RPMs on ${{ matrix.image }}
6466
container: ${{ matrix.image }}
@@ -77,7 +79,7 @@ jobs:
7779
7880
# Dependencies ---------------------------------------------------------------------------
7981
- name: Install dependencies (CentOS)
80-
if: startsWith(matrix.image, 'centos')
82+
if: contains(matrix.image, 'centos')
8183
run: |
8284
yum -y install epel-release
8385
yum -y install git gcc gcc-c++ cmake make libxml2-devel lz4-devel libzstd-devel rpm-build

0 commit comments

Comments
 (0)