ci(workflows): 在Windows环境中添加jq到PATH
Some checks failed
Build Windows / ACT Windows Checkout Verification (push) Successful in 7h0m19s
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 19m34s
Build Windows / build (push) Failing after 7h0m31s

确保在Windows构建环境中能够使用jq工具,以便后续步骤可以正常执行
This commit is contained in:
shanshanzhong 2025-11-07 06:59:10 -08:00
parent 8937024241
commit 77b721df4b

View File

@ -175,6 +175,19 @@ jobs:
}
}
- name: Add jq to PATH
shell: powershell
run: |
$jqPath = "C:\ProgramData\chocolatey\bin"
if (Test-Path $jqPath) {
Add-Content -Path $env:GITHUB_PATH -Value $jqPath
$env:PATH = "$jqPath;$env:PATH"
Write-Host "Added jq path to GITHUB_PATH and current PATH"
} else {
Write-Host "jq installation path not found"
exit 1
}
- name: Setup Flutter
uses: subosito/flutter-action@v2
with: