From d01680ca09cdc49ebb983b62cf5ab1db923cb218 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 23 Oct 2024 01:00:10 +0200 Subject: [PATCH] ci/GHA: make `apg-get install` faster, drop a workaround - always pass `--no-install-suggests --no-install-recommends` to `apt-get` to avoid spending time to install packages we don't need. (notably in the i386 Linux job.) - drop an `apt-get` hack that's no longer necessary. Closes #1476 --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc4a5d4b..28b2e3cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,8 @@ jobs: - uses: actions/checkout@v4 - name: 'cmake' run: | - sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install libssl-dev + sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install --no-install-suggests --no-install-recommends \ + libssl-dev ./tests/cmake/test.sh build_linux: @@ -131,9 +132,8 @@ jobs: run: | sudo dpkg --add-architecture '${{ matrix.arch }}' sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 update - # Workaround for https://github.com/actions/runner-images/issues/7589 - sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install libgcc-s1:${{ matrix.arch }} - sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install gcc-multilib build-essential zlib1g-dev:${{ matrix.arch }} + sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install --no-install-suggests --no-install-recommends \ + gcc-multilib build-essential zlib1g-dev:${{ matrix.arch }} - name: 'install packages' run: | @@ -141,7 +141,8 @@ jobs: [ '${{ matrix.crypto }}' = 'wolfSSL' ] && pkg='libwolfssl-dev' [ '${{ matrix.crypto }}' = 'Libgcrypt' ] && pkg='libgcrypt-dev' if [ -n "${pkg}" ]; then - sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install "${pkg}:${{ matrix.arch }}" + sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install --no-install-suggests --no-install-recommends \ + "${pkg}:${{ matrix.arch }}" fi - name: 'install mbedTLS from source' @@ -316,7 +317,10 @@ jobs: steps: - uses: actions/checkout@v4 - name: 'install packages' - run: sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install mingw-w64 ${{ matrix.build == 'cmake' && 'ninja-build' || '' }} + run: | + sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install --no-install-suggests --no-install-recommends \ + mingw-w64 ${{ matrix.build == 'cmake' && 'ninja-build' || '' }} + - name: 'autotools autoreconf' if: ${{ matrix.build == 'autotools' }} run: autoreconf -fi