[CI] 去掉windows安装xmake

This commit is contained in:
2026-01-03 22:07:23 +08:00
parent f67a43f159
commit 4f71fa09cf

View File

@@ -153,17 +153,6 @@ jobs:
echo "VERSION=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Append echo "VERSION=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "Windows构建版本: $VERSION" echo "Windows构建版本: $VERSION"
- name: 安装 xmake (Windows可选)
run: |
# 如果工具链验证步骤发现没有 xmake再执行安装
if (-not (Get-Command xmake -ErrorAction SilentlyContinue)) {
echo "正在安装 xmake..."
curl -fsSL https://xmake.io/shget.text -o xmake.ps1
powershell -ExecutionPolicy Bypass -File xmake.ps1
} else {
echo "xmake 已安装,跳过安装步骤。"
}
- name: 构建项目 (Windows Native) - name: 构建项目 (Windows Native)
run: | run: |
xmake f -p windows -a x86_64 -m release -y xmake f -p windows -a x86_64 -m release -y