chore(ci): 移除 Windows pipeline 中的 Git 安装步骤
Deploy / build-linux-web (push) Successful in 1m8s
Deploy / build-macos (push) Successful in 50s
Deploy / build-windows (push) Failing after 38s
Deploy / release-deploy (push) Has been skipped

Git 已在 Windows runner 上手动安装并加入系统 PATH,无需每次 CI 安装。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-05-31 00:17:43 +08:00
parent 7f6584ab64
commit c2f8bda4f3
-10
View File
@@ -53,16 +53,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Git (bash)
shell: cmd
run: |
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
run: sh scripts/ci/compile-windows.sh "${{ gitea.ref_name }}"