diff --git a/.github/workflows/build_self_hosted.yml b/.github/workflows/build_self_hosted.yml index 6eca75e0d..5c9bffa03 100644 --- a/.github/workflows/build_self_hosted.yml +++ b/.github/workflows/build_self_hosted.yml @@ -21,8 +21,5 @@ jobs: - name: build run: | - call setEnv64.bat - call Setup.bat - .\GenerateProjectFiles.bat - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\MSBuild.exe Engine\Intermediate\ProjectFiles\UE4.vcxproj" + call Build.bat shell: cmd diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml new file mode 100644 index 000000000..723b796af --- /dev/null +++ b/.github/workflows/doxygen.yml @@ -0,0 +1,26 @@ +name: Engine C++ documentation + +on: [push] + +jobs: + work: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + # github action 默认签出只包含最后一次提交 + # 解决方案参考:https://stackoverflow.com/questions/62334460/git-history-in-a-github-action + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + #任务名称:设置Python环境 + - name: Build doc + # This is the version of the action for setting up Python, not the Python version. + uses: mattnotmitt/doxygen-action@v1.9.5 + with: + enable-latex: true + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./Doxygen/html/ \ No newline at end of file diff --git a/Build.bat b/Build.bat new file mode 100644 index 000000000..1fdfd2997 --- /dev/null +++ b/Build.bat @@ -0,0 +1,28 @@ +@echo off +setlocal +chcp 65001 + + +:: call setEnv64.bat +:: %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" + +call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" + +:: 使用 --force 选项来跳过: Checking dependencies... overwrite your changes (y/n) +call Setup.bat --force + +call GenerateProjectFiles.bat + + +:: %ProgramFiles(x86)%=C:\Program Files (x86) +:: %ProgramW6432%=C:\Program Files + +:: 没有构建 UE4Editor.exe +:: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\MSBuild.exe" Engine\Intermediate\ProjectFiles\UE4.vcxproj + +:: 注意:双引号必须且只能将包含空格的目录 +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=.\ + +echo Build success! + +:: .\Engine\Binaries\Win64\UE4Editor.exe