1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

GHA: Install epel-release on RHEL and its clones in the rpmbuild test

This commit is contained in:
Daniel Mach 2023-11-23 15:39:00 +01:00
parent 41cbd5f505
commit 921942d15d

View File

@ -73,6 +73,9 @@ jobs:
- name: 'Install build dependencies (Fedora/CentOS)'
if: ${{ contains(matrix.container, '/fedora:') || contains(matrix.container, '/centos:') }}
run: |
RHEL_VERSION=$(rpm --eval '%{?rhel}')
[ -n "${RHEL_VERSION}" ] && rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-${RHEL_VERSION}.noarch.rpm
[ -n "${RHEL_VERSION}" ] && /usr/bin/crb enable
dnf -y builddep contrib/osc.spec
- name: 'Build SRPM and RPMs'