From e452910abc59cfb4dc42a40d2306420e511e0a03 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 21 Oct 2023 15:13:53 +0100 Subject: [PATCH] CI: add openSUSE to the matrix Signed-off-by: Emil Velikov --- .github/workflows/tests.yml | 12 ++++++++++++ run_test.sh | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c7e3d8c..57eb904a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,6 +36,8 @@ jobs: - {name: "fedora/fedora", tag: "39", url: "quay.io/"} - {name: "fedora/fedora", tag: "38", url: "quay.io/"} - {name: "gentoo/stage3", tag: "latest"} + - {name: "opensuse/tumbleweed", tag: "latest", variant: "-default", url: "registry.opensuse.org/"} + - {name: "opensuse/leap", tag: "15.5", variant: "-default", url: "registry.opensuse.org/"} - {name: "ubuntu", tag: "23.10"} - {name: "ubuntu", tag: "22.04"} - {name: "ubuntu", tag: "20.04"} @@ -45,6 +47,11 @@ jobs: image: ${{ matrix.distro.url }}${{ matrix.distro.name }}:${{ matrix.distro.tag }} steps: + - name: Install git for checkout action + if: contains(matrix.distro.name, 'opensuse') + run: | + zypper --non-interactive install git + - uses: actions/checkout@v3 - name: Install AlmaLinux dependencies @@ -85,6 +92,11 @@ jobs: emerge --sync FEATURES="getbinpkg binpkg-ignore-signature" USE="generic-uki" emerge --noreplace -j$(nproc) -l$(nproc) --autounmask-continue '>=sys-kernel/gentoo-kernel-bin-6.6.0' + - name: Install openSUSE leap dependencies + if: contains(matrix.distro.name, 'opensuse') + run: | + zypper --non-interactive install diffutils elfutils gcc kernel${{ matrix.distro.variant }} kernel${{ matrix.distro.variant }}-devel make openssl + - name: Install Ubuntu dependencies if: matrix.distro.name == 'ubuntu' run: | diff --git a/run_test.sh b/run_test.sh index f70599ba..f489ae79 100755 --- a/run_test.sh +++ b/run_test.sh @@ -248,14 +248,15 @@ case "${os_id}" in expected_dest_loc=extra mod_compression_ext=.xz ;; - sles | suse | opensuse) + sles | suse | opensuse*) expected_dest_loc=updates + mod_compression_ext=.zst ;; arch) expected_dest_loc=updates/dkms mod_compression_ext= ;; - debian | ubuntu | linuxmint) + debian* | ubuntu | linuxmint) expected_dest_loc=updates/dkms ;; alpine)