|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | 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 }} |
13 | 13 | strategy: |
14 | 14 | fail-fast: false |
15 | 15 | matrix: |
16 | | - os: [ubuntu-latest, fedora:latest] |
| 16 | + container: ['ubuntu:latest', 'fedora:latest', 'redhat/ubi9:latest'] |
17 | 17 | compiler: [gcc, clang] |
18 | 18 |
|
19 | 19 | steps: |
20 | 20 | - name: Checkout code |
21 | 21 | uses: actions/checkout@v4 |
22 | 22 |
|
23 | 23 | - name: Install dependencies (Ubuntu) |
24 | | - if: matrix.os == 'ubuntu-latest' |
| 24 | + if: matrix.container == 'ubuntu:latest' |
25 | 25 | run: | |
26 | | - sudo apt-get update |
27 | | - sudo apt-get install -y \ |
| 26 | + apt-get update |
| 27 | + apt-get install -y \ |
28 | 28 | gawk diffutils autoconf automake libtool \ |
29 | 29 | ${{ matrix.compiler }} \ |
30 | 30 | linux-headers-generic \ |
|
35 | 35 | libldap-dev |
36 | 36 |
|
37 | 37 | - 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' |
39 | 51 | run: | |
40 | 52 | dnf install -y \ |
41 | 53 | gawk diffutils autoconf automake libtool gdm \ |
|
60 | 72 | make -j$(nproc) |
61 | 73 |
|
62 | 74 | - 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' |
66 | 77 | run: make check |
0 commit comments