fix(ci): 改从 TUNA 镜像安装 Git,避免访问 GitHub
Deploy / build-windows (push) Failing after 17s
Deploy / build-linux-web (push) Successful in 54s
Deploy / build-macos (push) Successful in 50s
Deploy / release-deploy (push) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-05-31 00:07:47 +08:00
parent 23de243598
commit 7f6584ab64
+5 -1
View File
@@ -56,8 +56,12 @@ jobs:
- name: Install Git (bash)
shell: cmd
run: |
where bash >nul 2>&1 || winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements
where bash >nul 2>&1 && goto done
curl -L -o "%TEMP%\git-setup.exe" https://mirrors.tuna.tsinghua.edu.cn/github-release/git-for-windows/git/LatestRelease/Git-2.49.0-64-bit.exe
"%TEMP%\git-setup.exe" /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh"
:done
echo C:\Program Files\Git\bin>> %GITHUB_PATH%
echo C:\Program Files\Git\usr\bin>> %GITHUB_PATH%
- name: Compile (Flutter Windows)
shell: bash