Skip to content

Commit 7be1e25

Browse files
shouhuanxiaojiriosje
authored andcommitted
Added CI support for TencentOS 4 and OpenCloudOS 9
1 parent 11e8ea5 commit 7be1e25

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
strategy:
107107
matrix:
108108
version: [ 20, 22, 24, 25, 26 ]
109-
os: [ "fedora:41", "amazonlinux:2023", "rockylinux:9", "rockylinux:8", "redhat/ubi9:latest" ]
109+
os: [ "fedora:41", "amazonlinux:2023", "rockylinux:9", "rockylinux:8", "redhat/ubi9:latest", "tencentos/tencentos4:latest" ]
110110
container:
111111
image: ${{ matrix.os }}
112112
defaults:
@@ -198,7 +198,7 @@ jobs:
198198
strategy:
199199
matrix:
200200
version: [ 20, 22, 24, 25, 26 ]
201-
os: [ "rockylinux:9-minimal", "rockylinux:8-minimal", "redhat/ubi9-minimal:latest" ]
201+
os: [ "rockylinux:9-minimal", "rockylinux:8-minimal", "redhat/ubi9-minimal:latest", "tencentos/tencentos4-minimal:latest", "opencloudos/opencloudos9-minimal:latest" ]
202202
container:
203203
image: ${{ matrix.os }}
204204
defaults:

scripts/rpm/setup_26.x

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ command_exists() {
3232
}
3333

3434
# Check if we are on an RPM-based system
35-
if ! [ -f /etc/redhat-release ] && ! grep -q "Amazon Linux" /etc/system-release 2>/dev/null; then
35+
if ! [ -f /etc/redhat-release ] \
36+
&& ! grep -q "Amazon Linux" /etc/system-release 2>/dev/null \
37+
&& ! grep -qi "TencentOS" /etc/system-release 2>/dev/null \
38+
&& ! grep -qi "OpenCloudOS" /etc/system-release 2>/dev/null; then
3639
handle_error 1 "This script is intended for RPM-based systems. Please run it on an RPM-based system."
3740
fi
3841

0 commit comments

Comments
 (0)