Repository navigation
fix(ci): 支持仅准备 MinGW 的 Windows 共享工具 action - #2322
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 25, 2026 07:29
1lck
approved these changes
Nov 25, 2026
1lck
left a comment
Owner
There was a problem hiding this comment.
已核对 MinGW 检查、NSIS 默认行为及禁用分支,脚本回归覆盖四种工具布局。
1 task done
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
Windows 桌面测试只需要 MinGW-w64,而 Release / AutoBuild 还需要 NSIS。共享 action 当前强制准备两者,使测试流程无法直接复用它。
改动 / Changes
.github/actions/setup-desktop-windows-build-tools/action.yml增加nsis输入,默认'true',保持现有 Release / AutoBuild 调用行为。gcc --version;nsis: false在任何 NSIS 路径查找、安装或版本检查前退出。输入经环境变量传入,没有直接拼进 shell。scripts/desktop/package-desktop.test.mjs在既有 NSIS 回归中增加 disabled 场景:不给 makensis,任何安装都会让测试失败,并确认 gcc 仍被执行。原来的 PATH、x86、x64 三种/VERSION路径验证保留。未完成范围 / Remaining work
Lithe-Support 的
commit_files接口明确禁止修改.github/workflows。 因此此远端 PR 只包含上述三个文件,不包含desktop-ci.yml;现有测试 workflow 的内联 MinGW 副本仍然存在,#1838 暂不能关闭。完整 workflow 替换已经在本地准备并通过 actionlint,下面附上准确补丁。需要使用允许写入 workflow 的提交入口将它加入此分支,并完成真实 Windows CI 后再评审完整 issue。
类型专属:fix
复现与根因
无用户可观察缺陷。此项整理已登记的 CI 重复:共享 action 无法跳过 NSIS,测试流程继续保留 MinGW 安装副本。
disabled: unexpected install;改后通过。true。/VERSION处理未改变。desktop-ci.yml调用共享 action:受接口路径限制,见下方未提交补丁。范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:只修改 CI 准备工具及测试,没有宿主用户可见行为变化;全矩阵校验已通过。
插件归属 / Plugin ownership
develop-lithe的自查命令搜索宿主目录,无命中。UI 验证 / UI evidence
N/A:没有界面变化。
统一日志系统 / Structured logging
N/A:没有修改应用运行时日志或失败路径。
界面文案 / i18n
N/A:仅 CI 步骤名和工程文档。
逻辑归属 / Logic placement
N/A:Windows 构建工具准备保留在现有 composite action,不涉及产品业务规则。
性能与内存 / Performance and memory
N/A:没有新增应用运行时依赖、进程或缓存。
设置 / Settings
N/A:没有应用设置变化。
插件契约 / Plugin contract
N/A:没有契约、SDK 或宿主方法变化。
发行包与资源 / Bundle and resources
未新增资源、下载来源或缓存路径。Release / AutoBuild 默认仍准备相同工具;实际 Windows 安装验收未执行。
无用代码与重构 / Dead code and refactoring
相关重复由 #1838 跟踪;剩余内联副本在下方补丁中删除,未在远端提交中误称已删除。
验证 / Verification
node --test scripts/desktop/package-desktop.test.mjsactionlint -shellcheck= .github/workflows/desktop-ci.yml .github/workflows/desktop-release.yml .github/workflows/desktop-autobuild.yml(1.7.12)./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh./scripts/agent-notes/verify-agent-notes.sh./scripts/platform-feature-matrix/verify-platform-feature-matrix.shgit diff --check验证限制: 没有原生 Windows VM。MinGW/NSIS 安装以及真实 Git Bash 的路径转换仍需 Windows CI;离线 fixture 证明分支行为,不证明 Windows 安装成功。测试计时 HTML/JUnit 已本地生成,不提交构建产物。
提交前确认 / Final checks
main的cc16002831ac916ec0f6c2ed98ab891de72f315f创建,目标main。待应用的 workflow 补丁
以下补丁没有包含在本 PR 的提交中。它只替换已经位于 checkout 之后的 Windows 工具准备步骤;Release / AutoBuild 无需改动。