Skip to content

Commit

Permalink
CI: add openSUSE to the matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
  • Loading branch information
evelikov committed Feb 8, 2024
1 parent 57265c0 commit e452910
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
5 changes: 3 additions & 2 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e452910

Please sign in to comment.