Skip to content

Commit 699ec79

Browse files
committed
Add Oracle tests with UEK kernel and custom GCC
1 parent ccdcaee commit 699ec79

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- {name: "gentoo/stage3", tag: "latest"}
3939
- {name: "opensuse/tumbleweed", tag: "latest", variant: "-default", url: "registry.opensuse.org/"}
4040
- {name: "opensuse/leap", tag: "15.6", variant: "-default", url: "registry.opensuse.org/"}
41+
- {name: "oraclelinux", tag: "10", uek: "ol10_UEKR8"}
42+
- {name: "oraclelinux", tag: "9", uek: "ol9_UEKR8", gcc: "gcc-toolset-14"}
43+
- {name: "oraclelinux", tag: "8", uek: "ol8_UEKR7", gcc: "gcc-toolset-11"}
4144
- {name: "ubuntu", tag: "25.04"}
4245
- {name: "ubuntu", tag: "24.04"}
4346
- {name: "ubuntu", tag: "22.04"}
@@ -46,21 +49,33 @@ jobs:
4649
image: ${{ matrix.distro.url }}${{ matrix.distro.name }}:${{ matrix.distro.tag }}
4750

4851
steps:
49-
- name: Install git for checkout action
50-
if: contains(matrix.distro.name, 'opensuse')
52+
- name: Checkout
53+
if: matrix.distro.name == 'opensuse/leap' && matrix.distro.tag == '15.6'
54+
# openSUSE Leap 15.6 does not have tar in the base image
5155
run: |
52-
zypper --non-interactive install git
53-
56+
zypper --non-interactive install tar gzip
5457
- uses: actions/checkout@v5
5558

5659
- name: Install dependencies for Red Hat based distributions
5760
if: matrix.distro.name == 'almalinux' || matrix.distro.name == 'centos' || matrix.distro.name == 'fedora'
58-
# Relax crypto policies on Fedora 43+ to allow RSA signatures
61+
# Relax crypto policies to allow RSA signatures
5962
run: |
6063
dnf install -y gawk diffutils elfutils-libelf gcc kernel kernel-devel make openssl patch crypto-policies-scripts
6164
update-crypto-policies --set LEGACY
6265
make install-redhat
6366
67+
- name: Install dependencies for Oracle Linux
68+
if: matrix.distro.name == 'oraclelinux'
69+
# Relax crypto policies to allow RSA signatures
70+
run: |
71+
dnf config-manager --set-enabled ${{ matrix.distro.uek }}
72+
dnf install -y gawk diffutils elfutils-libelf gcc kernel-uek kernel-uek-devel make openssl patch crypto-policies-scripts
73+
update-crypto-policies --set LEGACY
74+
make install-redhat
75+
if [ -n "${{ matrix.distro.gcc }}" ]; then
76+
echo "build_environment=\"/opt/rh/${{ matrix.distro.gcc }}/enable\"" >> /etc/dkms/framework.conf.d/uek.conf
77+
fi
78+
6479
- name: Install Alpine dependencies
6580
if: matrix.distro.name == 'alpine'
6681
run: |

run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ distro_sign_file_candidates=
359359
distro_modsigkey=/var/lib/dkms/mok.key
360360
distro_modsigcert=/var/lib/dkms/mok.pub
361361
case "${os_id}" in
362-
centos | fedora | rhel | ovm | almalinux)
362+
centos | fedora | rhel | ovm | almalinux | ol)
363363
expected_dest_loc=extra
364364
mod_compression_ext=.xz
365365
;;

0 commit comments

Comments
 (0)