github: Switch to downloading GNU sources from a specific mirror Fetching from ftpmirror.gnu.org, from the github actions runners, returns "502: Bad Gateway" some times during the day, while it seems to work fine other times. Fetching directly from ftp.gnu.org currently seems to work fine, although we switched away from that earlier in eea8f577e02a08d90e7a7c1c60251e7760f6a880, when ftp.gnu.org was overloaded at the time. Fetch from a trustworthy mirror, to avoid relying too much on the also possibly overloaded main server ftp.gnu.org. Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9fe2fa8..9313efd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml
@@ -350,11 +350,11 @@ run: | mkdir -p /opt/gnu cd /opt/gnu - curl -LO https://ftpmirror.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz - curl -LO https://ftpmirror.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz - curl -LO https://ftpmirror.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz - curl -LO https://ftpmirror.gnu.org/gnu/binutils/binutils-2.42.tar.xz - curl -LO https://ftpmirror.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/gmp/gmp-6.3.0.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/mpfr/mpfr-4.2.1.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/mpc/mpc-1.3.1.tar.gz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/binutils/binutils-2.42.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz - name: Build binutils run: | tar -Jxf /opt/gnu/binutils-*.tar.xz @@ -472,11 +472,11 @@ run: | mkdir -p /opt/gnu cd /opt/gnu - curl -LO https://ftpmirror.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz - curl -LO https://ftpmirror.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz - curl -LO https://ftpmirror.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz - curl -LO https://ftpmirror.gnu.org/gnu/binutils/binutils-2.42.tar.xz - curl -LO https://ftpmirror.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/gmp/gmp-6.3.0.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/mpfr/mpfr-4.2.1.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/mpc/mpc-1.3.1.tar.gz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/binutils/binutils-2.42.tar.xz + curl -LO https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz - name: Build dependencies run: | PREFIX=$(pwd)/prefix