@@ -30,11 +30,31 @@ runs:
3030 with :
3131 arch : ${{inputs.platform-name}}
3232
33+ - name : Cache VPC output
34+ uses : actions/cache@v4
35+ id : cache-vpc
36+ with :
37+ path : .\external\vpc\out
38+ key : ${{runner.os}}-${{inputs.platform-name}}-${{ hashFiles('.git\modules\external\vpc\refs\heads\main') }}
39+
40+ - name : ' Cache dependencies output for ${{inputs.solution-name}}_${{inputs.platform-name}}.sln'
41+ uses : actions/cache@v4
42+ id : cache-dependencies
43+ with :
44+ path : .\thirdparty\**\out
45+ key : ${{runner.os}}-${{inputs.platform-name}}-${{ hashFiles('.git\modules\thirdparty\**\refs\heads\main') }}
46+
3347 - name : ' Build dependencies for ${{inputs.solution-name}}_${{inputs.platform-name}}.sln'
3448 working-directory : ${{env.GITHUB_WORKSPACE}}
49+ if : steps.cache-dependencies.outputs.cache-hit != 'true'
3550 run : .\build_game_thirdparty.bat ${{inputs.platform-name}}
3651 shell : cmd
3752
53+ - name : Generate build version information
54+ working-directory : ${{env.GITHUB_WORKSPACE}}
55+ run : .\generate_build_info.bat
56+ shell : cmd
57+
3858 - name : ' Generate solution ${{inputs.solution-name}}_${{inputs.platform-name}}.sln'
3959 working-directory : ${{env.GITHUB_WORKSPACE}}
4060 run : .\create_game_projects.bat ${{inputs.solution-name}} ${{inputs.platform-name}}
@@ -45,11 +65,22 @@ runs:
4565 run : msbuild ${{inputs.solution-name}}_${{inputs.platform-name}}.sln /m -verbosity:minimal /p:Configuration=${{inputs.configuration-name}} /p:Platform=${{inputs.platform-name}}
4666 shell : cmd
4767
68+ - name : Get build artifacts path
69+ working-directory : ${{env.GITHUB_WORKSPACE}}
70+ id : get-build-artifacts-path
71+ run : |
72+ pushd "..\game"
73+ set ABS_PATH=%CD%
74+ popd
75+ @chcp 65001>nul
76+ echo BUILD_ARTIFACTS_PATH=%ABS_PATH% >> %GITHUB_OUTPUT%
77+ shell : cmd
78+
4879 - name : ' Upload ${{inputs.solution-name}}_${{inputs.platform-name}} build artifacts'
4980 uses : actions/upload-artifact@v4
5081 with :
5182 name : ' ${{inputs.solution-name}}_${{inputs.platform-name}}'
52- path : ..\game\
83+ path : ' ${{steps.get-build-artifacts-path.outputs.BUILD_ARTIFACTS_PATH}} '
5384 if-no-files-found : error
5485 retention-days : 1
5586 compression-level : 9
0 commit comments