mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
ci: use mirror for riscv submodules
sourceware is blocking/rate-limiting http(s) git requests to combat AI scrapers. Switch to a live mirror hosted at fish.foo Use exported GIT_CONFIG_* to avoid setting `git config --global` which could clobber a user running on bare host, but still propagate to child git processes spawned by `make`.
This commit is contained in:
@@ -88,8 +88,16 @@ if [[ -n "${USE_INSTRUMENTED_LIBCPP}" ]]; then
|
||||
fi
|
||||
|
||||
if [[ ${BARE_METAL_RISCV} == "true" ]]; then
|
||||
# Use a mirror for these submodules as sourceware blocks too many requests combating AI.
|
||||
${CI_RETRY_EXE} git clone --depth=1 https://github.com/riscv-collab/riscv-gnu-toolchain -b 2026.06.06 /riscv/gcc
|
||||
( cd /riscv/gcc;
|
||||
export GIT_CONFIG_COUNT=3
|
||||
export GIT_CONFIG_KEY_0=url.https://git.fish.foo/mirrors/binutils-gdb.git.insteadOf
|
||||
export GIT_CONFIG_VALUE_0=https://sourceware.org/git/binutils-gdb.git
|
||||
export GIT_CONFIG_KEY_1=url.https://git.fish.foo/mirrors/glibc.git.insteadOf
|
||||
export GIT_CONFIG_VALUE_1=https://sourceware.org/git/glibc.git
|
||||
export GIT_CONFIG_KEY_2=url.https://git.fish.foo/mirrors/newlib-cygwin.git.insteadOf
|
||||
export GIT_CONFIG_VALUE_2=https://sourceware.org/git/newlib-cygwin.git
|
||||
./configure --prefix=/opt/riscv-ilp32 --with-arch=rv32gc --with-abi=ilp32 --disable-gdb;
|
||||
make "$MAKEJOBS"; )
|
||||
rm -rf /riscv/gcc
|
||||
|
||||
Reference in New Issue
Block a user