From 6decc1f01453c15c408e9cd6ca5814e53cf5d548 Mon Sep 17 00:00:00 2001 From: Kinga Stefaniuk Date: Wed, 25 Sep 2024 14:30:23 +0200 Subject: 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 --- .github/tools/install_ubuntu_packages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3