Skip to content

Commit

Permalink
GHA: Install epel-release on RHEL and its clones in the rpmbuild test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Nov 23, 2023
1 parent 41cbd5f commit 921942d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 921942d

Please sign in to comment.