Skip to content

Commit 1413799

Browse files
authored
加入自动构建引擎流程 (#7)
* 加入自动构建引擎流程 * 通用性支持 * 添加自动构建C++文档流程 * fix * 修复编译配置错误
1 parent 9db3ac2 commit 1413799

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

.github/workflows/build_self_hosted.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,5 @@ jobs:
2121

2222
- name: build
2323
run: |
24-
call setEnv64.bat
25-
call Setup.bat
26-
.\GenerateProjectFiles.bat
27-
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\MSBuild.exe Engine\Intermediate\ProjectFiles\UE4.vcxproj"
24+
call Build.bat
2825
shell: cmd

.github/workflows/doxygen.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Engine C++ documentation
2+
3+
on: [push]
4+
5+
jobs:
6+
work:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
# github action 默认签出只包含最后一次提交
12+
# 解决方案参考:https://stackoverflow.com/questions/62334460/git-history-in-a-github-action
13+
ref: ${{ github.event.pull_request.head.sha }}
14+
fetch-depth: 0
15+
#任务名称:设置Python环境
16+
- name: Build doc
17+
# This is the version of the action for setting up Python, not the Python version.
18+
uses: mattnotmitt/doxygen-action@v1.9.5
19+
with:
20+
enable-latex: true
21+
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v4
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./Doxygen/html/

Build.bat

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
setlocal
3+
chcp 65001
4+
5+
6+
:: call setEnv64.bat
7+
:: %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
8+
9+
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
10+
11+
:: 使用 --force 选项来跳过: Checking dependencies... overwrite your changes (y/n)
12+
call Setup.bat --force
13+
14+
call GenerateProjectFiles.bat
15+
16+
17+
:: %ProgramFiles(x86)%=C:\Program Files (x86)
18+
:: %ProgramW6432%=C:\Program Files
19+
20+
:: 没有构建 UE4Editor.exe
21+
:: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\MSBuild.exe" Engine\Intermediate\ProjectFiles\UE4.vcxproj
22+
23+
:: 注意:双引号必须且只能将包含空格的目录
24+
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\MSBuild.exe" UE4.sln /p:Configuration="Development Editor" /p:Platform="Win64" /p:Project="UnrealBuildTool" /p:OutputPath=.\
25+
26+
echo Build success!
27+
28+
:: .\Engine\Binaries\Win64\UE4Editor.exe

0 commit comments

Comments
 (0)