From 3c3fb5bfe4ca4686203da0d83649eb4b55609b2d Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sun, 9 Mar 2025 18:26:43 -0700 Subject: [PATCH] ci: install git-core It has less dependencies than the "full" git package. On Fedora, we need --setopt=install_weak_deps=false so that the "full" git package is not installed. Also, setup nodocs transaction flag as we don't need documentation inside CI environment. This might save some time and/or disk space. Before: > Install 77 Packages > Total download size: 164 M > Installed size: 431 M After: > Install 30 Packages > Total download size: 148 M > Installed size: 381 M (Those numbers are for almalinux-8). Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index f9a2d60..ca0d898 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -124,7 +124,7 @@ jobs: # Sync the current directory to /tmp/selinux in the guest limactl cp -r . default:/tmp/selinux # Install packages - lima sudo dnf install -y git make golang + lima sudo dnf install --setopt=install_weak_deps=false --setopt=tsflags=nodocs -y git-core make golang - name: "make test" run: lima make -C /tmp/selinux test