Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build_self_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@ jobs:

- name: build
run: |
call Build.bat
call Build.bat --git-code ${{ secrets.GIT_CODE }}
shell: cmd

- uses: mickem/clean-after-action@v1

- name: Delete .git folder
run: |
del /f /s /q .git
rd /s /q .git
shell: cmd
22 changes: 21 additions & 1 deletion Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ setlocal
chcp 65001


rem -- 解析命令行参数 --

:parse
if "%1"=="" (
goto main
)
if "%1"=="--git-code" (
set git_code=%2
)
shift
goto parse

rem -- MAIN --

:main




:: call setEnv64.bat
:: %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

Expand All @@ -19,7 +38,8 @@ if exist "%programfiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Bui

if not exist "%~dp0\.git\ue4-gitdeps" (
echo Cloning ue4-gitdeps to .git directory...
git clone https://OpenHUTB:T8w6TYB_r71gGTP3A02B@git.code.tencent.com/OpenHUTB/ue4-gitdeps.git .git\ue4-gitdeps && cd .git\ue4-gitdeps && git lfs pull
echo git_code=%git_code%
git clone https://OpenHUTB:%git_code%@git.code.tencent.com/OpenHUTB/ue4-gitdeps.git .git\ue4-gitdeps && cd .git\ue4-gitdeps && git lfs pull
echo Clone engine dependencies complete.
cd ..\..
)
Expand Down
25 changes: 25 additions & 0 deletions Setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@ set PROMPT_ARGUMENT=--prompt
:no_prompt_argument

rem 同步依赖...
rem .\Engine\Binaries\DotNET\GitDependencies.exe 使用方法:
rem GitDependencies [选项]
rem
rem 选项:
rem --all 同步所有目录Sync all folders
rem --include=<X> Include binaries in folders called <X>
rem --exclude=<X> Exclude binaries in folders called <X>
rem --prompt Prompt before overwriting modified files
rem --force Always overwrite modified files
rem --root=<PATH> Set the repository directory to be sync
rem --threads=<N> Use N threads when downloading new files
rem --dry-run Print a list of outdated files and exit
rem --max-retries Override maximum number of retries per file
rem --proxy=<user:password@url> Sets the HTTP proxy address and credentials
rem --cache=<PATH> Specifies a custom path for the download cache
rem --cache-size-multiplier=<N> Cache size as multiplier of current download
rem --cache-days=<N> Number of days to keep entries in the cache
rem --no-cache Disable caching of downloaded files
rem
rem Detected settings:
rem Excluded folders: none
rem Proxy server: none
rem Download cache: D:\hutb\Build\engine\.git\ue4-gitdeps
rem
rem Default arguments can be set through the UE4_GITDEPS_ARGS environment variable.
.\Engine\Binaries\DotNET\GitDependencies.exe %PROMPT_ARGUMENT% %*
if ERRORLEVEL 1 goto error

Expand Down