mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
CI: Use Ubuntu mirrors instead of azure (#18057)
Use the official Ubuntu apt mirrors instead of
azure.archive.ubuntu.com, since that mirror can be slow:
https://github.com/actions/runner-images/issues/7048
This can help speed up the 'Setup QEMU' stage.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #18057
This commit is contained in:
parent
a69a90b49e
commit
32faecb0c2
1 changed files with 14 additions and 0 deletions
14
.github/workflows/scripts/qemu-1-setup.sh
vendored
14
.github/workflows/scripts/qemu-1-setup.sh
vendored
|
|
@ -13,6 +13,20 @@ set -eu
|
|||
# handle on what the timeout value should be.
|
||||
(while [ 1 ] ; do sleep 30 && echo "[watchdog: $(ps -eo cmd --sort=-pcpu | head -n 2 | tail -n 1)}')]"; done) &
|
||||
|
||||
# The default 'azure.archive.ubuntu.com' mirrors can be really slow.
|
||||
# Prioritize the official Ubuntu mirrors.
|
||||
#
|
||||
# The normal apt-mirrors.txt will look like:
|
||||
#
|
||||
# http://azure.archive.ubuntu.com/ubuntu/ priority:1
|
||||
# https://archive.ubuntu.com/ubuntu/ priority:2
|
||||
# https://security.ubuntu.com/ubuntu/ priority:3
|
||||
#
|
||||
# Just delete the 'azure.archive.ubuntu.com' line.
|
||||
sudo sed -i '/azure.archive.ubuntu.com/d' /etc/apt/apt-mirrors.txt
|
||||
echo "Using mirrors:"
|
||||
cat /etc/apt/apt-mirrors.txt
|
||||
|
||||
# install needed packages
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
sudo apt-get -y update
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue