From: Kinga Stefaniuk Date: Wed, 25 Sep 2024 12:30:23 +0000 (+0200) Subject: CI: do not install unnecessary packages X-Git-Tag: mdadm-4.4~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6decc1f01453c15c408e9cd6ca5814e53cf5d548;p=thirdparty%2Fmdadm.git CI: do not install unnecessary packages Updating all of the packages every time is not needed and costs a lot of resources. Install only necessary packages and their dependencies. Signed-off-by: Kinga Stefaniuk --- diff --git a/.github/tools/install_ubuntu_packages.sh b/.github/tools/install_ubuntu_packages.sh index 1a31ca47..4c886134 100755 --- a/.github/tools/install_ubuntu_packages.sh +++ b/.github/tools/install_ubuntu_packages.sh @@ -7,6 +7,6 @@ echo "Detected VERSION_CODENAME: $VERSION_CODENAME" sudo add-apt-repository -y "deb [arch=amd64] http://archive.ubuntu.com/ubuntu $VERSION_CODENAME \ main universe" # Install gcc -sudo apt-get -y update && sudo apt-get -y install gcc-$1 +sudo apt-get -y install gcc-$1 --no-upgrade --no-install-recommends --no-install-suggests # Install dependencies -sudo apt-get -y install make gcc libudev-dev devscripts +sudo apt-get -y install make gcc libudev-dev devscripts --no-upgrade --no-install-recommends --no-install-suggests