ci(workflow): 更新 Windows 构建工作流配置
Some checks failed
Build Android APK / 编译 Android APK (release) (push) Has been skipped
Build Windows / 编译 libcore (Windows) (push) Failing after 9s
Build Android APK / 编译 libcore.aar (push) Failing after 10s
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Failing after 6s
Build Windows / build (push) Has been skipped
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled

- 使用 Node.js 20.x 确保最新稳定补丁
- 添加 npm 缓存以加速构建
- 增加 Node.js 安装验证步骤
This commit is contained in:
shanshanzhong 2025-11-05 18:25:33 -08:00
parent 7cd360e61e
commit 90fd476c45

View File

@ -17,7 +17,16 @@ jobs:
- name: 🔧 设置 Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '20.x' # 使用 20.x 以确保最新稳定补丁
cache: 'npm' # 启用缓存以加速并减少下载问题
- name: 🔍 验证 Node.js 安装
run: |
echo "Node.js 版本: $(node --version)"
echo "npm 版本: $(npm --version)"
echo "PATH: $PATH"
which node || echo "❌ node 未在 PATH 中"
node --version || echo "❌ node 命令失败"
- name: 📥 Checkout 代码
uses: actions/checkout@v4
@ -32,7 +41,6 @@ jobs:
cache: true
cache-dependency-path: libcore/go.sum
- name: 🔧 安装 MinGW
run: |
sudo apt-get update
@ -143,4 +151,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: windows-release-build
path: build/windows/runner/Release/
path: build/windows/runner/Release/