@@ -224,6 +224,7 @@ jobs:
224224 CCACHE_INODECACHE : ' true'
225225 CCACHE_SLOPPINESS : ' time_macros'
226226 CCACHE_LAUNCH_ARGS : ' -DCMAKE_C_COMPILER_LAUNCHER=C:\ccache_bin\ccache.exe -DCMAKE_CXX_COMPILER_LAUNCHER=C:\ccache_bin\ccache.exe'
227+ CCACHE_LOGFILE : ' ${{ github.workspace }}\ccache_log.txt'
227228 DEPS_CACHE_DIR : ./dependency_cache
228229 UPLOAD_COMMIT_HASH : 7d09e3be30805911226241afbb14f8cdc2eb054e
229230 UPLOAD_REPO_FULL_NAME : " RPCS3/rpcs3-binaries-win"
@@ -281,9 +282,28 @@ jobs:
281282 - name : Add msbuild to PATH
282283 uses : microsoft/setup-msbuild@main
283284
285+ - name : Zero ccache stats
286+ shell : pwsh
287+ run : |
288+ Remove-Item -Path "${{ env.CCACHE_LOGFILE }}" -ErrorAction SilentlyContinue
289+ & "${{ env.CCACHE_BIN_DIR }}\ccache.exe" -z
290+
284291 - name : Compile RPCS3
285292 shell : pwsh
286- run : msbuild rpcs3.sln /p:Configuration=Release /v:minimal /p:Platform=x64 /p:PreferredToolArchitecture=x64 /p:CLToolPath=${{ env.CCACHE_BIN_DIR }} /p:UseMultiToolTask=true /p:CustomAfterMicrosoftCommonTargets="${{ github.workspace }}\buildfiles\msvc\ci_only.targets"
293+ run : msbuild rpcs3.sln /p:Configuration=Release /v:minimal /clp:"ShowTimestamp;PerformanceSummary" /p:Platform=x64 /p:PreferredToolArchitecture=x64 /p:CLToolPath=${{ env.CCACHE_BIN_DIR }} /p:UseMultiToolTask=true /p:CustomAfterMicrosoftCommonTargets="${{ github.workspace }}\buildfiles\msvc\ci_only.targets"
294+
295+ - name : Show ccache stats
296+ if : always()
297+ shell : pwsh
298+ run : & "${{ env.CCACHE_BIN_DIR }}\ccache.exe" -s -v
299+
300+ - name : Upload ccache log
301+ if : always()
302+ uses : actions/upload-artifact@main
303+ with :
304+ name : ccache-log-windows-msvc
305+ path : ${{ env.CCACHE_LOGFILE }}
306+ if-no-files-found : warn
287307
288308 - name : Run Unit Tests
289309 if : github.event_name == 'pull_request'
0 commit comments