agora inbox for [email protected]
help / color / mirror / Atom feedFrom: Justin Pryzby <[email protected]>
Subject: [PATCH 12/19] cirrus/windows: ccache
Date: Wed, 25 May 2022 22:05:13 -0500
https://www.postgresql.org/message-id/flat/20220522232606.GZ19626%40telsasoft.com
ci-os-only: windows
---
.cirrus.yml | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/.cirrus.yml b/.cirrus.yml
index 02f04aa98bb..35e51453dfd 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -372,7 +372,15 @@ 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:CLToolExe=pgccache.exe
+#c:\ProgramData\chocolatey\bin\ccache.exe
+
+ CCACHE_DIR: $CIRRUS_WORKING_DIR/.ccache
+ CCACHE_LOGFILE: ccache.log
+ #CCACHE_PREFIX: cl.exe
+ #CCACHE_PREFIX_CPP: cl.exe
+ CCACHE_COMPILERTYPE: msvc
+ CCACHE_COMPILER: cl.exe
DebugInformationFormat: OldStyle
@@ -403,8 +411,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\pgccache.exe
+
+ ccache_cache:
+ folder: $CCACHE_DIR
configure_script:
# copy errors out when using forward slashes
@@ -413,7 +425,13 @@ task:
- perl src/tools/msvc/mkvcbuild.pl
build_script:
- vcvarsall x64
+ - ccache --zero-stats
- msbuild %MSBFLAGS% pgsql.sln
+ - ccache.exe --show-stats
+
+ 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
--Sw7tCqrGA+HQ0/zt
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0013-another-way-to-install-uri-regress-uri_regress.patch"
view thread (7+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 12/19] cirrus/windows: ccache
In-Reply-To: <no-message-id-126968@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox