Skip to content

Commit

Permalink
ci: update RHEL build/test from EL7 to EL8
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Sep 5, 2024
1 parent 299693a commit cf546d2
Showing 1 changed file with 10 additions and 38 deletions.
48 changes: 10 additions & 38 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:
fail-fast: false
matrix:
el:
- el7-testing
- el8-testing
runs-on: ubuntu-latest
container: igwn/base:${{ matrix.el }}
env:
Expand All @@ -241,10 +241,6 @@ jobs:
with:
name: tarball

- name: Configure DNF
if: matrix.el == 'el7-testing'
run: ln -s /usr/bin/yum /usr/bin/dnf

- name: Configure EPEL
run: |
dnf -y install epel-release
Expand All @@ -253,7 +249,7 @@ jobs:
- name: Configure rpmbuild
run: |
dnf -y install \
python-srpm-macros \
"*-srpm-macros" \
rpm-build \
;
Expand All @@ -274,7 +270,7 @@ jobs:
fail-fast: false
matrix:
el:
- el7-testing
- el8-testing
runs-on: ubuntu-latest
container: igwn/base:${{ matrix.el }}
env:
Expand All @@ -285,43 +281,24 @@ jobs:
with:
name: srpm-${{ matrix.el }}

- name: Configure DNF
if: matrix.el == 'el7-testing'
run: ln -s /usr/bin/yum /usr/bin/dnf

- name: Configure EPEL
run: |
dnf -y install epel-release
dnf -y install epel-rpm-macros
- name: Enable PowerTools (EL8+)
if: matrix.el != 'el7-testing'
- name: Enable PowerTools (EL8)
if: matrix.el == 'el8-testing'
run: |
dnf -y -q install "dnf-command(config-manager)"
dnf config-manager --set-enabled powertools
- name: Install build tools (EL7)
if: matrix.el == 'el7-testing'
run: |
dnf -y -q install \
rpm-build \
yum-utils \
;
- name: Install build tools (EL8+)
if: matrix.el != 'el7-testing'
- name: Install build tools
run: |
dnf -y -q install \
rpm-build \
"dnf-command(builddep)" \
;
- name: Install build dependencies (EL7)
if: matrix.el == 'el7-testing'
run: yum-builddep -y ${SRPM}

- name: Install build dependencies (EL8+)
if: matrix.el != 'el7-testing'
- name: Install build dependencies
run: dnf builddep -y ${SRPM}

- name: Build binary packages
Expand Down Expand Up @@ -358,7 +335,7 @@ jobs:
fail-fast: false
matrix:
el:
- el7-testing
- el8-testing
runs-on: ubuntu-latest
container: igwn/base:${{ matrix.el }}
steps:
Expand All @@ -367,14 +344,9 @@ jobs:
with:
name: rpm-${{ matrix.el }}

- name: Configure DNF
if: matrix.el == 'el7-testing'
run: ln -s /usr/bin/yum /usr/bin/dnf

- name: Configure EPEL
run: |
dnf -y install epel-release
dnf -y install epel-rpm-macros
- name: Install RPMs
run: dnf -y install *.rpm
Expand All @@ -389,11 +361,11 @@ jobs:
- name: Download RPM
uses: actions/download-artifact@v4
with:
name: rpm-el7-testing
name: rpm-el8-testing

- name: Install rpmlint
run: |
yum -y -q install \
dnf -y -q install \
rpmlint \
;
Expand Down

0 comments on commit cf546d2

Please sign in to comment.