Skip to content

Commit 043b06b

Browse files
committed
Add ubi9 image
1 parent 87e6631 commit 043b06b

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ${{ matrix.os == 'fedora:latest' && 'ubuntu-latest' || matrix.os }}
12-
container: ${{ matrix.os == 'fedora:latest' && 'fedora:latest' || null }}
11+
runs-on: ubuntu-latest
12+
container: ${{ matrix.container }}
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-latest, fedora:latest]
16+
container: ['ubuntu:latest', 'fedora:latest', 'redhat/ubi9:latest']
1717
compiler: [gcc, clang]
1818

1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
2222

2323
- name: Install dependencies (Ubuntu)
24-
if: matrix.os == 'ubuntu-latest'
24+
if: matrix.container == 'ubuntu:latest'
2525
run: |
26-
sudo apt-get update
27-
sudo apt-get install -y \
26+
apt-get update
27+
apt-get install -y \
2828
gawk diffutils autoconf automake libtool \
2929
${{ matrix.compiler }} \
3030
linux-headers-generic \
@@ -35,7 +35,19 @@ jobs:
3535
libldap-dev
3636
3737
- name: Install dependencies (Fedora)
38-
if: matrix.os == 'fedora:latest'
38+
if: matrix.container == 'fedora:latest'
39+
run: |
40+
dnf install -y \
41+
gawk diffutils autoconf automake libtool gdm \
42+
${{ matrix.compiler }} \
43+
kernel-headers \
44+
krb5-devel \
45+
libcap-ng-devel \
46+
python3-devel python-unversioned-command swig \
47+
openldap-devel
48+
49+
- name: Install dependencies (UBI 9)
50+
if: matrix.container == 'redhat/ubi9:latest'
3951
run: |
4052
dnf install -y \
4153
gawk diffutils autoconf automake libtool gdm \
@@ -60,7 +72,6 @@ jobs:
6072
make -j$(nproc)
6173
6274
- name: Run tests
63-
# Temporarily disable for Ubuntu,
64-
# see https://github.com/linux-audit/audit-userspace/pull/445
65-
if: matrix.os != 'ubuntu-latest'
75+
# Temporarily disable for Ubuntu
76+
if: matrix.container != 'ubuntu:latest'
6677
run: make check

0 commit comments

Comments
 (0)