From cc378276743444968ab6fcba2a39d2d9a59a62b7 Mon Sep 17 00:00:00 2001 From: Kleber Noel <42589399+klebster2@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:58:21 +0000 Subject: [PATCH] Update continuous_integration.yml --- .github/workflows/continuous_integration.yml | 40 ++++++++++++++------ 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index c2e7244..3635832 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -38,28 +38,46 @@ jobs: - name: Setup Gentoo if: matrix.container == 'gentoo/stage3' run: | - # Configure news reading to avoid warnings - mkdir -p /etc/portage/profile + # Configure make.conf + echo 'MAKEOPTS="-j$(nproc)"' >> /etc/portage/make.conf echo "news_pkg_install_unread = ignore" >> /etc/portage/make.conf - # Update portage and sync repository + # Create necessary directories + mkdir -p /etc/portage/profile + mkdir -p /var/db/repos/gentoo + + # Setup kernel sources emerge-webrsync - # Update system tools first + # Install sys-kernel/gentoo-sources first + emerge --quiet-build=y sys-kernel/gentoo-sources + + # Create symbolic link for kernel sources + ln -s /usr/src/linux-* /usr/src/linux + + # Update portage emerge --quiet-build=y sys-apps/portage - # Install required packages with correct Gentoo names + # Install basic build tools first emerge --quiet-build=y \ - dev-vcs/git \ - app-shells/bash \ - sys-devel/make \ + sys-devel/gnumake \ sys-devel/gcc \ + dev-vcs/git \ + app-shells/bash + + # Install additional tools + emerge --quiet-build=y \ net-misc/curl \ app-misc/tmux - - # Create necessary directories - mkdir -p /var/db/repos/gentoo + # Verify installations + gcc --version + make --version + git --version + bash --version + curl --version + tmux -V + # Common setup for Ubuntu - name: Install system dependencies (Ubuntu) if: "!matrix.container"