Repository navigation
Conversation
Member
Contributor
Author
|
这个 run 的红色来自两个既有问题,和本 PR 的改动无关:
24.04 这套改动已在本人的 fork 上完整验证:
如果需要,我可以提供 24.04 runner 的注册命令;或者由有仓库权限的维护者注册。runner 到位后,这个 job 就能实际验证了。 |
Member
|
配置action runner的命令已经发到你邮箱里( 3308971792@qq.com )了,请及时在服务器上配置 |
Member
|
不要提交的方式触发,用手动点击触发,避免windows的测试也开始 |
This branch has not been deployed
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.
在 Ubuntu 24.04 的 self-hosted runner 上把整套 CI/CD(编译 + 打包 + 全部
make.check)跑通了,这里把改动整理成 PR。改动内容
.github/workflows/build_linux.yml:新增linux-dev-2404job,20.04 的linux-dev原样保留。pull_request、push(hutb)、workflow_dispatchworkflow_dispatch增加mode(fast/full)与upload(默认 false)两个开关.github/scripts/ci_2404_shim.sh:新增 24.04 工具链适配脚本,只对 24.04 job 生效,所有修改都在 CI 工作区内,不提交、不影响仓库源码。为什么不改 Target.cs
Target.cs里的/wd4103是 MSVC 专用参数,Linux clang 会把它当成文件路径,报No such file or directory。但它被 Windows/macOS/20.04 共用,直接改会影响其他平台。按老师意见,仓库里的
.cs一个都不改,改为在 shim 里把引擎自带clang/clang++替换成包装脚本(原文件备份为*.real),在参数列表里丢弃/wd4103,UBT 与 Python 扩展都会自动经过包装。不依赖系统组件
clang++ -shared -fuse-ld=lld(引擎自带旧ld读不了新版 glibc 的.relr.dyn)Build/dependencies/prerequisites/mono→ 引擎自带 → 系统(逐级回落)mono 用的是 UE4.26 自带的 mono 5.16;目前先放在 runner 的依赖缓存里,后续会收进
dependencies_u,届时脚本里的回落分支可以删除。shim 里还做了什么
Setup.sh:把被unset的LLVM_INCLUDE/LLVM_LIBPATH/UNREAL_HOSTED_CFLAGS指回 UE4 自带的 libc++ 与 sysrootBuildUE4Plugins.sh:Content 不是独立 git 仓库时不再git reset;禁用 MavLinkTest;AirSim 改用 UE4 clang + libc++ 编译BuildOSM2ODR.sh:/usr/bin/clang→ UE4 clang,libstdc++→libc++ + sysrootAirSim.Build.cs:去掉重复的librpc.aCheck.sh:无头环境加-opengl,并在启动模拟器后等待 3654 端口就绪LibCarla:关闭 CI 不需要的单测(预编译 gtest 依赖新版 glibc)与 20.04 job 的差异(都需要,且不涉及业务代码)
source setEnv64.sh:里面写死了/home/ubuntu的UE4_ROOT,24.04 用 workflow envmake plugins:Plugins.sh未 sourceEnvironment.sh会失败,功能已被make setup的downloadplugins覆盖UnrealBuildTool.exe:这台引擎上GenerateProjectFiles.sh的产物只落在obj/,不会回填Binaries/DotNET,删了 UBT 直接不可用upload=false时用--no-zip验证
fork 仓库同一套脚本的实跑记录:
make.check总耗时 2507 秒)需要配合的事项
self-hosted, ubuntu-hutb-2404标签;没有的话该 job 会一直排队Util/download_from_git.py目前固定推默认分支,没有--branch参数。按要求「先推测试分支」,需要给脚本加一个--upload-branch(默认master,CI 传测试分支);这一点如果同意,可以在本 PR 里一起改