GHA: use --no-install-suggests --no-install-recommends where missing
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
This commit is contained in:
parent
0e18bd3940
commit
b327a53f09
3
.github/workflows/checkdocs.yml
vendored
3
.github/workflows/checkdocs.yml
vendored
@ -42,7 +42,8 @@ jobs:
|
|||||||
# - name: install prereqs
|
# - name: install prereqs
|
||||||
# run: |
|
# run: |
|
||||||
# sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
# 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/
|
# # config file help: https://github.com/amperser/proselint/
|
||||||
# - name: create proselint config
|
# - name: create proselint config
|
||||||
|
|||||||
6
.github/workflows/http3-linux.yml
vendored
6
.github/workflows/http3-linux.yml
vendored
@ -160,7 +160,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||||
sudo apt-get update -y
|
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 \
|
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 \
|
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 \
|
libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
|
||||||
@ -320,7 +321,8 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||||
sudo apt-get update -y
|
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 \
|
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 \
|
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 \
|
libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
|
||||||
|
|||||||
5
.github/workflows/linux.yml
vendored
5
.github/workflows/linux.yml
vendored
@ -281,7 +281,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||||
sudo apt-get update -y
|
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 \
|
libtool autoconf automake pkgconf ninja-build stunnel4 \
|
||||||
libpsl-dev libbrotli-dev libzstd-dev \
|
libpsl-dev libbrotli-dev libzstd-dev \
|
||||||
${{ matrix.build.install_packages }}
|
${{ matrix.build.install_packages }}
|
||||||
@ -300,7 +300,8 @@ jobs:
|
|||||||
|
|
||||||
- if: contains(matrix.build.install_steps, 'pytest')
|
- if: contains(matrix.build.install_steps, 'pytest')
|
||||||
run: |
|
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'
|
name: 'install prereqs for pytest'
|
||||||
|
|
||||||
- if: startsWith(matrix.build.container, 'alpine')
|
- if: startsWith(matrix.build.container, 'alpine')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user