Skip to content

Commit db1d322

Browse files
committed
Use a mirror of ftp.gnu.org, since ftp.gnu.org is down too often.
1 parent 6ede124 commit db1d322

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/many-platforms.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ env:
4444
# URL prefix suitable for downloading individual files through 'wget'
4545
#gnulib_url_prefix: https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;hb=HEAD;f=
4646
gnulib_url_prefix: https://raw.githubusercontent.com/coreutils/gnulib/refs/heads/master/
47+
# Mirror of ftp.gnu.org
48+
ftp_gnu_org: mirrors.ocf.berkeley.edu
4749

4850
jobs:
4951
build-tarball:
@@ -59,7 +61,7 @@ jobs:
5961
# List of packages: https://packages.ubuntu.com/
6062
- run: sudo apt update; sudo apt install gperf gobjc fp-compiler fp-units-fcl gettext groff texlive-base texlive-latex-base
6163
- run: |
62-
wget -O automake-1.18.tar.gz https://ftp.gnu.org/gnu/automake/automake-1.18.tar.gz
64+
wget -O automake-1.18.tar.gz https://${{ env.ftp_gnu_org }}/gnu/automake/automake-1.18.tar.gz
6365
tar xfz automake-1.18.tar.gz && cd automake-1.18 && patch -p0 < ../patches/automake-installcheck.diff && ./configure --prefix=/usr && make && sudo make install && cd ..
6466
./build-tarball.sh '${{ env.package }}'
6567
# Doc: https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
@@ -206,7 +208,7 @@ jobs:
206208
cd /work
207209
ls -l
208210
export CPPFLAGS="-Wall"
209-
wget -O make-4.2.1.tar.gz https://ftp.gnu.org/gnu/make/make-4.2.1.tar.gz
211+
wget -O make-4.2.1.tar.gz https://${{ env.ftp_gnu_org }}/gnu/make/make-4.2.1.tar.gz
210212
./build-on.sh '${{ env.package }}' '' 'make' '/usr/local' 'make-4.2.1' 'yum -y install epel-release && yum -y install gcc-c++ gcc-objc python3 guile gnu-smalltalk java-11-openjdk-devel mono-devel tcl perl perl-libintl php gcc-go ruby ruby-gettext lua gjs vala glibc-common && localedef -i ar_SA -f ISO-8859-6 ar_SA.ISO-8859-6 && localedef -i de_DE -f ISO-8859-1 de_DE.ISO-8859-1 && localedef -i de_DE -f UTF-8 de_DE.UTF-8 && localedef -i es_ES -f UTF-8 es_ES.UTF-8 && localedef -i fa_IR -f UTF-8 fa_IR && localedef -i fr_FR -f ISO-8859-1 fr_FR.ISO-8859-1 && localedef -i fr_FR -f UTF-8 fr_FR.UTF-8 && localedef -i ja_JP -f EUC-JP ja_JP.EUC-JP && localedef -i tr_TR -f UTF-8 tr_TR.UTF-8 && localedef -i zh_CN -f GB18030 zh_CN.GB18030'
211213
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
212214
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
@@ -1194,7 +1196,7 @@ jobs:
11941196
export CPPFLAGS="-Wall"
11951197
export CC=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32-gcc
11961198
export CXX=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32-g++
1197-
wget -O libiconv-1.18.tar.gz https://ftp.gnu.org/gnu/libiconv/libiconv-1.18.tar.gz
1199+
wget -O libiconv-1.18.tar.gz https://${{ env.ftp_gnu_org }}/gnu/libiconv/libiconv-1.18.tar.gz
11981200
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32 --enable-csharp=dotnet' 'make' '/usr/${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32/sys-root/mingw' 'libiconv-1.18' ''
11991201
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
12001202
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
@@ -1319,7 +1321,7 @@ jobs:
13191321
export STRIP=":"
13201322
export AR="`pwd`/ar-lib lib"
13211323
export RANLIB=":"
1322-
wget -O libiconv-1.18.tar.gz https://ftp.gnu.org/gnu/libiconv/libiconv-1.18.tar.gz
1324+
wget -O libiconv-1.18.tar.gz https://${{ env.ftp_gnu_org }}/gnu/libiconv/libiconv-1.18.tar.gz
13231325
: "Make sure iconv-2.dll gets found after libiconv has been built and installed."
13241326
export PATH=/usr/local/msvc${{ matrix.bitness }}/bin:"$PATH"
13251327
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32 --enable-csharp=dotnet' 'make' '/usr/local/msvc${{ matrix.bitness }}' 'libiconv-1.18' ''

0 commit comments

Comments
 (0)