ci(docker): 修复工作流中Windows编译任务名称并优化MinGW安装脚本

修复Windows编译任务名称中的多余字符
优化MinGW安装脚本以兼容不同运行环境
This commit is contained in:
shanshanzhong 2025-11-06 20:23:08 -08:00
parent ce969a6ad4
commit 067a715afe

View File

@ -14,7 +14,7 @@ on:
jobs: jobs:
# 先编译 libcore # 先编译 libcore
build-libcore: build-libcore:
name: 编译 libcore (Windows)1 name: 编译 libcore (Windows)
runs-on: client-server runs-on: client-server
container: container:
image: node:20 image: node:20
@ -39,6 +39,7 @@ jobs:
- name: 🔧 安装 MinGW - name: 🔧 安装 MinGW
run: | run: |
# 在 GitHub 托管 runner有 sudo与 act/自托管容器(无 sudo均可运行
if command -v sudo >/dev/null 2>&1; then if command -v sudo >/dev/null 2>&1; then
sudo apt-get update sudo apt-get update
sudo apt-get install -y mingw-w64 sudo apt-get install -y mingw-w64
@ -73,6 +74,7 @@ jobs:
libcore/bin/webui/** libcore/bin/webui/**
retention-days: 7 retention-days: 7
# 构建 Windows 应用 # 构建 Windows 应用
build: build:
runs-on: windows-latest runs-on: windows-latest