mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 01:16:14 +01:00
GHA: Install epel-release on RHEL and its clones in the rpmbuild test
This commit is contained in:
parent
41cbd5f505
commit
921942d15d
3
.github/workflows/build-install.yaml
vendored
3
.github/workflows/build-install.yaml
vendored
@ -73,6 +73,9 @@ jobs:
|
|||||||
- name: 'Install build dependencies (Fedora/CentOS)'
|
- name: 'Install build dependencies (Fedora/CentOS)'
|
||||||
if: ${{ contains(matrix.container, '/fedora:') || contains(matrix.container, '/centos:') }}
|
if: ${{ contains(matrix.container, '/fedora:') || contains(matrix.container, '/centos:') }}
|
||||||
run: |
|
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
|
dnf -y builddep contrib/osc.spec
|
||||||
|
|
||||||
- name: 'Build SRPM and RPMs'
|
- name: 'Build SRPM and RPMs'
|
||||||
|
Loading…
Reference in New Issue
Block a user