From: Justin Pryzby Date: Wed, 25 May 2022 22:05:13 -0500 Subject: [PATCH 12/21] cirrus/windows: ccache https://www.postgresql.org/message-id/flat/20220522232606.GZ19626%40telsasoft.com ci-os-only: windows, windows-msvc --- .cirrus.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 02f04aa98bb..e5654bd5589 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -372,7 +372,11 @@ task: # disable file tracker, we're never going to rebuild, and it slows down the # build # -fileLoggerParameters1: write warnings to msbuild.warn.log. - MSBFLAGS: -m -verbosity:minimal "-consoleLoggerParameters:Summary;ForceNoAlign" /p:TrackFileAccess=false -nologo -fileLoggerParameters1:warningsonly;logfile=msbuild.warn.log + MSBFLAGS: -m -verbosity:minimal "-consoleLoggerParameters:Summary;ForceNoAlign" /p:TrackFileAccess=false -nologo -fileLoggerParameters1:warningsonly;logfile=msbuild.warn.log /p:UseMultiToolTask=true /p:CLToolPath=c:\ProgramData\chocolatey\bin +#c:\ProgramData\chocolatey\bin\ccache.exe + + CCACHE_DIR: $CIRRUS_WORKING_DIR/.ccache + CCACHE_LOGFILE: ccache.log DebugInformationFormat: OldStyle @@ -403,8 +407,12 @@ task: powershell -Command get-psdrive -psprovider filesystem set - setup_additional_packages_script: | - REM choco install -y --no-progress ... + setup_additional_packages_script: + - choco install -y --no-progress ccache --version 4.6.1 + - cp c:\ProgramData\chocolatey\lib\ccache\tools\ccache-4.6.1-windows-x86_64\ccache.exe \ProgramData\chocolatey\bin\cl.exe + + ccache_cache: + folder: $CCACHE_DIR configure_script: # copy errors out when using forward slashes @@ -414,6 +422,10 @@ task: build_script: - vcvarsall x64 - msbuild %MSBFLAGS% pgsql.sln + + always: + upload_caches: ccache + tempinstall_script: # Installation on windows currently only completely works from src/tools/msvc - cd src/tools/msvc && perl install.pl %CIRRUS_WORKING_DIR%/tmp_install -- 2.17.1 --STPqjqpCrtky8aYs Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0013-cirrus-ccache-disable-compression-and-show-stats.patch"