@@ -140,10 +140,16 @@ jobs:
140140 - name : Start installing browser secret helper build libraries
141141 if : needs.changes.outputs.build != 'false'
142142 run : |
143- sudo sed -i 's|http://|https://|g' /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
143+ # Fetch only the indexes these main and universe packages need. The full set is ~42 MB,
144+ # which a slow mirror can stretch past the wait below.
145+ sudo sed -i -e 's|http://|https://|g' -e 's/^Components: .*/Components: main universe/' \
146+ /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
144147 (
145148 set +e
146- sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config xvfb
149+ sudo apt-get update -o Acquire::Languages=none \
150+ -o Acquire::IndexTargets::deb::DEP-11::DefaultEnabled=false \
151+ -o Acquire::IndexTargets::deb::CNF::DefaultEnabled=false &&
152+ sudo apt-get install -y libsecret-1-dev pkg-config xvfb
147153 echo "$?" > "$RUNNER_TEMP/apt-status"
148154 ) > "$RUNNER_TEMP/apt.log" 2>&1 < /dev/null &
149155
@@ -287,10 +293,16 @@ jobs:
287293 # the background while Vite+ installs; the step before the tests waits for it.
288294 - name : Start installing browser secret helper build libraries
289295 run : |
290- sudo sed -i 's|http://|https://|g' /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
296+ # Fetch only the indexes these main and universe packages need. The full set is ~42 MB,
297+ # which a slow mirror can stretch past the wait below.
298+ sudo sed -i -e 's|http://|https://|g' -e 's/^Components: .*/Components: main universe/' \
299+ /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
291300 (
292301 set +e
293- sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
302+ sudo apt-get update -o Acquire::Languages=none \
303+ -o Acquire::IndexTargets::deb::DEP-11::DefaultEnabled=false \
304+ -o Acquire::IndexTargets::deb::CNF::DefaultEnabled=false &&
305+ sudo apt-get install -y libsecret-1-dev pkg-config
294306 echo "$?" > "$RUNNER_TEMP/apt-status"
295307 ) > "$RUNNER_TEMP/apt.log" 2>&1 < /dev/null &
296308
0 commit comments