Skip to content

Commit c38bf76

Browse files
committed
add rhel8
1 parent 37b0729 commit c38bf76

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/opencv.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
# - { os: osx.15, arch: arm64, runs-on: macos-15 }
5858
- { os: centos.7, arch: x64, runs-on: ubuntu-22.04, image: oraclelinux:7 }
5959
- { os: centos.7, arch: arm64, runs-on: ubuntu-22.04-arm, image: oraclelinux:7 }
60+
- { os: rhel.8, arch: x64, runs-on: ubuntu-22.04, image: oraclelinux:7 }
61+
- { os: rhel.8, arch: arm64, runs-on: ubuntu-22.04-arm, image: oraclelinux:7 }
6062

6163
steps:
6264
- name: Checkout OpenCV repo
@@ -96,14 +98,20 @@ jobs:
9698
yum-config-manager --enable ol7_developer_epel
9799
EOS
98100
)
101+
elif [[ "${{ matrix.os }}" == "rhel.8" ]]; then
102+
script=$(
103+
cat <<'EOS'
104+
set -eux
105+
yum install -y oracle-epel-release-el8
106+
yum-config-manager --enable ol8_developer_epel
99107
fi
100108
echo "Executing script in Docker container: $script"
101109
docker exec builder bash -c "$script"
102110
103111
- name: Install Dependencies in Docker Container
104112
if: matrix.image != ''
105113
run: |
106-
if [[ "${{ matrix.os }}" == "centos.7" ]]; then
114+
if [[ "${{ matrix.os }}" == "centos.7" or "${{ matrix.os }}" == "rhel.8" ]]; then
107115
script=$(
108116
cat <<'EOS'
109117
yum install -y gcc cmake3 gcc-c++ make nasm

0 commit comments

Comments
 (0)