]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA: use `--no-install-suggests --no-install-recommends` where missing
authorViktor Szakats <commit@vsz.me>
Tue, 22 Oct 2024 20:44:44 +0000 (22:44 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 22 Oct 2024 23:29:52 +0000 (01:29 +0200)
It prevents `apt-get install` commands installing unnecessary packages.

Makes the 8 HTTP/3 jobs around 30 seconds faster each.

before: https://github.com/curl/curl/actions/runs/11466168597
after:  https://github.com/curl/curl/actions/runs/11469013245?pr=15373

Closes #15373

.github/workflows/checkdocs.yml
.github/workflows/http3-linux.yml
.github/workflows/linux.yml

index e249ac62de00696dd954534eded279554f98cf2d..c89775f69e0ac7bed57ceec7cdaf1c2c7ffafb52 100644 (file)
@@ -42,7 +42,8 @@ jobs:
   #      - name: install prereqs
   #        run: |
   #          sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
-  #          sudo apt-get install python3-proselint
+  #          sudo apt-get install -y --no-install-suggests --no-install-recommends \
+  #            python3-proselint
   #
   #      # config file help: https://github.com/amperser/proselint/
   #      - name: create proselint config
index 00aab2ecdeb6539de710674e0920ffbfce133638..074d1ef622b1e82b35bd40a610daa4273e52f54e 100644 (file)
@@ -160,7 +160,8 @@ jobs:
         run: |
           sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
           sudo apt-get update -y
-          sudo apt-get install libtool autoconf automake pkgconf stunnel4 \
+          sudo apt-get install -y --no-install-suggests --no-install-recommends \
+            libtool autoconf automake pkgconf stunnel4 \
             libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
             nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
             libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
@@ -320,7 +321,8 @@ jobs:
       - run: |
           sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
           sudo apt-get update -y
-          sudo apt-get install libtool autoconf automake ninja-build pkgconf stunnel4 \
+          sudo apt-get install -y --no-install-suggests --no-install-recommends \
+            libtool autoconf automake ninja-build pkgconf stunnel4 \
             libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
             nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
             libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
index 72ef3de6c0f4613d5e962ea874de2955d0861664..4ea0f92332a8de66e53d3931adbacc5c08bda5ab 100644 (file)
@@ -281,7 +281,7 @@ jobs:
         run: |
           sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
           sudo apt-get update -y
-          sudo apt-get install -y \
+          sudo apt-get install -y --no-install-suggests --no-install-recommends \
             libtool autoconf automake pkgconf ninja-build stunnel4 \
             libpsl-dev libbrotli-dev libzstd-dev \
             ${{ matrix.build.install_packages }}
@@ -300,7 +300,8 @@ jobs:
 
       - if: contains(matrix.build.install_steps, 'pytest')
         run: |
-          sudo apt-get install apache2 apache2-dev libnghttp2-dev vsftpd
+          sudo apt-get install -y --no-install-suggests --no-install-recommends \
+            apache2 apache2-dev libnghttp2-dev vsftpd
         name: 'install prereqs for pytest'
 
       - if: startsWith(matrix.build.container, 'alpine')