CI: speedup apt package install

we are fine to skip some repos like languages and translations.
this drops number of repos twice
This commit is contained in:
Ilia Shipitsin 2024-05-31 17:04:14 +02:00 committed by William Lallemand
parent c79c312142
commit ab23d7eb69
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install apt dependencies - name: Install apt dependencies
run: | run: |
sudo apt-get update sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
sudo apt-get --no-install-recommends -y install \ sudo apt-get --no-install-recommends -y install \
liblua5.4-dev \ liblua5.4-dev \
libsystemd-dev libsystemd-dev

View File

@ -94,7 +94,7 @@ jobs:
steps: steps:
- name: install packages - name: install packages
run: | run: |
sudo apt-get update sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
sudo apt-get -yq --force-yes install \ sudo apt-get -yq --force-yes install \
gcc-${{ matrix.platform.arch }} \ gcc-${{ matrix.platform.arch }} \
${{ matrix.platform.libs }} ${{ matrix.platform.libs }}

View File

@ -80,7 +80,7 @@ jobs:
- name: Install apt dependencies - name: Install apt dependencies
if: ${{ startsWith(matrix.os, 'ubuntu-') }} if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: | run: |
sudo apt-get update sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
sudo apt-get --no-install-recommends -y install \ sudo apt-get --no-install-recommends -y install \
${{ contains(matrix.FLAGS, 'USE_LUA=1') && 'liblua5.4-dev' || '' }} \ ${{ contains(matrix.FLAGS, 'USE_LUA=1') && 'liblua5.4-dev' || '' }} \
${{ contains(matrix.FLAGS, 'USE_PCRE2=1') && 'libpcre2-dev' || '' }} \ ${{ contains(matrix.FLAGS, 'USE_PCRE2=1') && 'libpcre2-dev' || '' }} \