From 921942d15d3b8ce60ce8cace28a557a9e0b9de61 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 23 Nov 2023 15:39:00 +0100 Subject: [PATCH] GHA: Install epel-release on RHEL and its clones in the rpmbuild test --- .github/workflows/build-install.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-install.yaml b/.github/workflows/build-install.yaml index 62662d82..58460c0f 100644 --- a/.github/workflows/build-install.yaml +++ b/.github/workflows/build-install.yaml @@ -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'