ci(android): libbox 从 NAS gitea 镜像取 sing-box 源码,绕开 github 不可达
Deploy Client / build-windows (push) Successful in 1m46s
Deploy Client / build-android (push) Failing after 22m36s
Deploy Client / release-deploy (push) Has been skipped
Deploy Client / build-macos (push) Failing after 3m40s
Deploy Client / build-ios (push) Failing after 1m16s
Deploy Client / build-windows (push) Successful in 1m46s
Deploy Client / build-android (push) Failing after 22m36s
Deploy Client / release-deploy (push) Has been skipped
Deploy Client / build-macos (push) Failing after 3m40s
Deploy Client / build-ios (push) Failing after 1m16s
build-android 失败根因:build-libbox.sh 第一步 git clone github.com/SagerNet/ sing-box,而 mac runner(经 pangolin 隧道)连不上 github(SSL_ERROR_SYSCALL, exit 128)。windows 成功是因为它从 NAS 镜像取 sing-box.exe、不碰 github。 修:build-libbox.sh clone 改用 $SINGBOX_GIT(默认仍 github,本地开发不受影响); deploy-client.yml 的 build-android 设 SINGBOX_GIT=http://127.0.0.1:13000/wangjia/ sing-box.git,经 runner 的 gitea relay 取 NAS 上的 sing-box 镜像(已用 gitea migrate 从 github 拉好,含 v1.13.13)。与 windows 的 DESKTOP_BIN_MIRROR 同思路, CI 不再依赖 github。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,10 @@ gomobile init
|
||||
echo "==> [2/3] 拉 sing-box $SINGBOX_VERSION 源码"
|
||||
mkdir -p "$WORK"
|
||||
rm -rf "$WORK/sing-box"
|
||||
git clone --depth 1 --branch "$SINGBOX_VERSION" https://github.com/SagerNet/sing-box.git "$WORK/sing-box"
|
||||
# sing-box 源码:默认 github,CI 里国内 runner 连不上 github → 经 SINGBOX_GIT 指向
|
||||
# NAS gitea 镜像(wangjia/sing-box,gitea migrate 自 github)。见 deploy-client.yml。
|
||||
SINGBOX_GIT="${SINGBOX_GIT:-https://github.com/SagerNet/sing-box.git}"
|
||||
git clone --depth 1 --branch "$SINGBOX_VERSION" "$SINGBOX_GIT" "$WORK/sing-box"
|
||||
cd "$WORK/sing-box"
|
||||
|
||||
echo "==> [3/3] 用官方 build_libbox 编核心库"
|
||||
|
||||
Reference in New Issue
Block a user