Skip to content

Commit

Permalink
Make rpm for el9 (#608)
Browse files Browse the repository at this point in the history
This also removes support for ubuntu kinetic which is now deprecated.
  • Loading branch information
i3149 authored Sep 14, 2023
1 parent af663cb commit 5cc2818
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,37 @@ jobs:
release: 7
pkg: rpm
pkg_name: el
image: centos
- distro: centos
release: 8
pkg: rpm
pkg_name: el
image: centos
- distro: ubi9
release: 9.2
pkg: rpm
pkg_name: el
image: redhat/ubi9

- distro: ubuntu
release: focal
pkg: deb
pkg_name: ubuntu
image: ubuntu
- distro: ubuntu
release: jammy
pkg: deb
pkg_name: ubuntu
- distro: ubuntu
release: kinetic
pkg: deb
pkg_name: ubuntu
image: ubuntu

- distro: debian
release: bullseye
pkg: deb
pkg_name: debian
image: debian

container:
image: ${{ matrix.distro }}:${{ matrix.release }}
image: ${{ matrix.image }}:${{ matrix.release }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -70,6 +76,9 @@ jobs:
yum install -y make gcc diffutils ruby-devel redhat-rpm-config gcc-c++
dnf -y --enablerepo=powertools install libpcap-devel
fi
elif [ "${{ matrix.distro }}" = "ubi9" ]
then
yum install -y make gcc diffutils libpcap-devel
else
apt-get update
apt-get -y install make libpcap-dev ca-certificates build-essential curl ruby ruby-dev
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,31 @@ jobs:
- distro: centos
release: 7
pkg: rpm
image: centos
- distro: centos
release: 8
pkg: rpm
image: centos
- distro: ubi9
release: 9.2
pkg: rpm
image: redhat/ubi9

- distro: ubuntu
release: focal
pkg: deb
image: ubuntu
- distro: ubuntu
release: jammy
pkg: deb
- distro: ubuntu
release: kinetic
pkg: deb
image: ubuntu

- distro: debian
release: bullseye
pkg: deb
image: debian
container:
image: ${{ matrix.distro }}:${{ matrix.release }}
image: ${{ matrix.image }}:${{ matrix.release }}

# NB: any run steps that need chf src need to have `working-directory: ${{ env.SRCDIR }}`
steps:
Expand Down Expand Up @@ -67,6 +73,9 @@ jobs:
yum install -y make gcc diffutils
dnf -y --enablerepo=powertools install libpcap-devel
fi
elif [ "${{ matrix.distro }}" = "ubi9" ]
then
yum install -y make gcc diffutils libpcap-devel
else
apt-get update
apt-get -y install make libpcap-dev ca-certificates build-essential curl
Expand Down

0 comments on commit 5cc2818

Please sign in to comment.