Skip to content

Commit 3c3fb5b

Browse files
committed
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 <[email protected]>
1 parent 6de9828 commit 3c3fb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
# Sync the current directory to /tmp/selinux in the guest
125125
limactl cp -r . default:/tmp/selinux
126126
# Install packages
127-
lima sudo dnf install -y git make golang
127+
lima sudo dnf install --setopt=install_weak_deps=false --setopt=tsflags=nodocs -y git-core make golang
128128
129129
- name: "make test"
130130
run: lima make -C /tmp/selinux test

0 commit comments

Comments
 (0)