fix(ci): Windows 安装 Git 改用 cmd,避免 PowerShell 执行策略限制
Deploy / build-windows (push) Failing after 18s
Deploy / build-macos (push) Successful in 56s
Deploy / build-linux-web (push) Failing after 12m28s
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:01:49 +08:00
parent 65e2021138
commit 23de243598
+3 -6
View File
@@ -54,13 +54,10 @@ jobs:
- uses: actions/checkout@v4
- name: Install Git (bash)
shell: powershell
shell: cmd
run: |
if (-not (Get-Command bash -ErrorAction SilentlyContinue)) {
winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements
$env:PATH = "C:\Program Files\Git\bin;$env:PATH"
[System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, 'Machine')
}
where bash >nul 2>&1 || winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements
echo C:\Program Files\Git\bin>> %GITHUB_PATH%
- name: Compile (Flutter Windows)
shell: bash