Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: change centos to rockylinux #100

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- 'debian:buster'
- 'debian:bullseye'
- 'debian:bookworm'
- 'quay.io/centos/centos:stream8'
- 'rockylinux:8'
- 'oraclelinux:8'
- 'oraclelinux:9'

Expand All @@ -39,8 +39,8 @@ jobs:
apt-get -y install librdkafka-dev
env:
DEBIAN_FRONTEND: noninteractive
- name: Enable additional repositories (CentOS Steam)
if: contains(matrix.image, 'centos:stream')
- name: Enable additional repositories (Rocky Linux)
if: contains(matrix.image, 'rockylinux')
run: |
dnf -y install 'dnf-command(config-manager)'
dnf config-manager --set-enabled appstream powertools
Expand All @@ -54,8 +54,8 @@ jobs:
run: |
dnf -y install 'dnf-command(config-manager)'
dnf config-manager --set-enabled ol9_appstream ol9_codeready_builder
- name: Enable EPEL (CentOS)
if: contains(matrix.image, 'centos')
- name: Enable EPEL (Rocky Linux)
if: contains(matrix.image, 'rockylinux')
run: |
yum -y install epel-release
- name: Enable EPEL (Oracle Linux 8)
Expand All @@ -66,8 +66,8 @@ jobs:
if: contains(matrix.image, 'oraclelinux:9')
run: |
dnf -y install oracle-epel-release-el9
- name: Install dependencies for libfds and IPFIXcol2 (CentOS, Oracle Linux)
if: contains(matrix.image, 'centos') || contains(matrix.image, 'oraclelinux')
- name: Install dependencies for libfds and IPFIXcol2 (Rocky Linux, Oracle Linux)
if: contains(matrix.image, 'rockylinux') || contains(matrix.image, 'oraclelinux')
run: |
yum -y install git gcc gcc-c++ cmake make libxml2-devel lz4-devel libzstd-devel
yum -y install zlib-devel pkgconfig librdkafka-devel
Expand Down Expand Up @@ -95,10 +95,8 @@ jobs:
- name: Build and install IPFIXcol2
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=$TESTS
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1
make && make install
env:
TESTS: ${{ startsWith(matrix.image, 'centos:7') != true }}
- name: Run tests
run: cd build && make test
- name: Try to run IPFIXcol2
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
fail-fast: false
matrix:
image:
- 'quay.io/centos/centos:stream8'
- 'rockylinux:8'
- 'oraclelinux:8'
- 'oraclelinux:9'

Expand All @@ -113,8 +113,8 @@ jobs:
mkdir -p build/libfds_repo

# Dependencies ---------------------------------------------------------------------------
- name: Enable additional repositories (CentOS Stream)
if: contains(matrix.image, 'centos:stream')
- name: Enable additional repositories (Rocky Linux)
if: contains(matrix.image, 'rockylinux')
run: |
dnf -y install 'dnf-command(config-manager)'
dnf config-manager --set-enabled appstream powertools
Expand All @@ -128,8 +128,8 @@ jobs:
run: |
dnf -y install 'dnf-command(config-manager)'
dnf config-manager --set-enabled ol9_appstream ol9_codeready_builder
- name: Enable EPEL (CentOS)
if: contains(matrix.image, 'centos')
- name: Enable EPEL (Rocky Linux)
if: contains(matrix.image, 'Rocky Linux')
run: |
yum -y install epel-release
- name: Enable EPEL (Oracle Linux 8)
Expand All @@ -140,8 +140,8 @@ jobs:
if: contains(matrix.image, 'oraclelinux:9')
run: |
dnf -y install oracle-epel-release-el9
- name: Install dependencies for libfds and IPFIXcol2 (CentOS, Oracle Linux)
if: contains(matrix.image, 'centos') || contains(matrix.image, 'oraclelinux')
- name: Install dependencies for libfds and IPFIXcol2 (Rocky Linux, Oracle Linux)
if: contains(matrix.image, 'rockylinux') || contains(matrix.image, 'oraclelinux')
run: |
yum -y install git gcc gcc-c++ cmake make libxml2-devel lz4-devel libzstd-devel
yum -y install zlib-devel pkgconfig rpm-build librdkafka-devel
Expand Down
Loading