diff options
author | Jack Lloyd <[email protected]> | 2017-09-10 01:05:28 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-10 08:07:06 -0400 |
commit | 00e1694e0127c394934c9d4a5b797eba31a00ff8 (patch) | |
tree | c5e9b636ed1289b7227951e8e81ed42f208dc3ff /src/scripts | |
parent | e6c06631a9e8ecbe00f9f6590c81475d42594b72 (diff) |
Enable clcache
Diffstat (limited to 'src/scripts')
-rw-r--r-- | src/scripts/ci/appveyor.yml | 10 | ||||
-rw-r--r-- | src/scripts/ci/setup_appveyor.bat | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/scripts/ci/appveyor.yml b/src/scripts/ci/appveyor.yml index 09c38f42b..152694b68 100644 --- a/src/scripts/ci/appveyor.yml +++ b/src/scripts/ci/appveyor.yml @@ -14,6 +14,10 @@ clone_depth: 5 environment: + CLCACHE_HARDLINK: 1 + CLCACHE_NODIRECT: 1 + APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9 + matrix: # 1 - MSVS: 2013 @@ -59,11 +63,15 @@ install: - call src\scripts\ci\setup_appveyor.bat build_script: - - python src\scripts\ci_build.py --os=windows --cc=msvc --without-python3 --make-tool=jom --cpu=%PLATFORM% %TARGET% + - python src\scripts\ci_build.py --os=windows --cc=msvc --compiler-cache=clcache --without-python3 --make-tool=jom --cpu=%PLATFORM% %TARGET% # whitelist branches to avoid testing feature branches twice (as branch and as pull request) branches: only: - master - release-2 + - clcache +# Despite claim in docs, %HOME% not supported +cache: + - C:\Users\Appveyor\clcache -> src\scripts\ci\appveyor.yml diff --git a/src/scripts/ci/setup_appveyor.bat b/src/scripts/ci/setup_appveyor.bat index e3f081773..d8d3bff77 100644 --- a/src/scripts/ci/setup_appveyor.bat +++ b/src/scripts/ci/setup_appveyor.bat @@ -10,3 +10,10 @@ cl appveyor DownloadFile http://download.qt.io/official_releases/jom/jom.zip -FileName jom.zip 7z e jom.zip + +nuget install -ExcludeVersion -Version 4.1.0 clcache + +set PATH=%PATH%;clcache\clcache-4.1.0 + +rem We rely on LZMA compression to stay under appveyors cache limit +clcache -M 536870912 |