Skip to content

Commit

Permalink
tests.yml: re-introduce Gentoo tests (but better)
Browse files Browse the repository at this point in the history
Should be faster now due to making better use of the binhost, setting
MAKEOPTS for parallelisation, using the parallel-install feature, and
using a faster repository syncing method.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
  • Loading branch information
Nowa-Ammerlaan committed Oct 23, 2024
1 parent 9a16738 commit 1f9dfcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- {name: "fedora/fedora", tag: "41", url: "quay.io/"}
- {name: "fedora/fedora", tag: "40", url: "quay.io/"}
- {name: "fedora/fedora", tag: "39", 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: "opensuse/leap", tag: "15.6", variant: "-default", url: "registry.opensuse.org/"}
Expand Down Expand Up @@ -73,6 +74,13 @@ jobs:
apt-get update -q
apt-get install -qy make linux-headers-amd64 linux-image-amd64 openssl xz-utils
- name: Install Gentoo Linux dependencies
if: matrix.distro.name == 'gentoo/stage3'
run: |
echo -e "MAKEOPTS=\"-j$(nproc) -l$(nproc)\"\nACCEPT_LICENSE=\"*\"" >> /etc/portage/make.conf
wget --progress=dot:mega -O - https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz | tar -xz && mv gentoo-master /var/db/repos/gentoo
FEATURES="getbinpkg binpkg-ignore-signature parallel-fetch parallel-install pkgdir-index-trusted" USE="-initramfs" emerge --quiet --noreplace -j$(nproc) -l$(nproc) --autounmask-continue --with-bdeps=n '>=sys-kernel/gentoo-kernel-bin-6.6.0'
- name: Install openSUSE leap dependencies
if: contains(matrix.distro.name, 'opensuse')
run: |
Expand Down

0 comments on commit 1f9dfcd

Please sign in to comment.