Repository navigation
ci: 修复自托管 CI 的依赖同步与 checkout 中断,Linux/Windows 均跑通 - #46
Merged
donghaiwang merged 1 commit intoNov 11, 2026
Merged
Conversation
Member
|
暂时关闭,准备好再打开,不然会触发太多不必要的测试。 https://github.com/OpenHUTB/engine/actions |
- 依赖同步改用官方 --exclude=Licenses / --exclude=registry - 移除失效的 Setup.sh --force,同步前 --dry-run 输出过期清单 - Windows checkout 容错并校验 .git 与 HEAD - 两个 workflow 增加 concurrency - doxygen 的 Deploy 仅在主仓库执行
Dame-time-0034
force-pushed
the
ci/windows-checkout-tolerate-hook
branch
from
November 10, 2026 23:20
de463f6 to
2fbbaf4
Compare
donghaiwang
approved these changes
Nov 11, 2026
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.
问题
Linux 依赖同步被静默跳过
./Setup.sh --force传给GitDependencies时变成非法的-force,同步实际没执行,脚本仍打印SUCCESS;随后UnrealBuildTool.exe不存在,构建失败。依赖清单里存在仓库中不存在的文件
Engine/Source/ThirdParty/Licenses/Avid_DNxHD_v2.5.2.37_License.pdf在Commit.gitdeps.xml中登记,但仓库里没有该文件;GitDependencies回源http://cdn.unrealengine.com被拒绝(匿名请求 403),同步中止。另外
Binaries/ThirdParty/Mono/Linux/etc/mono/registry/last-btime会被 Mono 运行时改写,每次都被判定为"已修改"并触发同样的重新下载。Windows checkout 阶段中断
post-checkout hook 同步依赖后返回退出码 1,checkout 步骤判失败,后续 build 从未执行。
连续 push 堆积运行
自托管机器单次构建数小时,多次 push 会产生多个排队运行抢同一个 runner。
修改
--exclude=<目录名>参数排除Licenses、registry(匹配逻辑见Engine/Source/Programs/GitDependencies/Program.cs的IsExcludedFolder)--dry-run打印过期文件清单,便于核对Setup.sh --force的错误用法continue-on-error: true,并新增Verify checkout校验.git与 HEADconcurrency(cancel-in-progress: true),同分支新提交自动取消旧运行doxygen.yml的Deploy增加if: github.repository == 'OpenHUTB/engine',fork 无写权限时跳过验证
b8206f18)b8206f18)