diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-03-12 03:03:41 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-03-12 03:20:33 +0100 |
commit | 3a53927f037bb4ab72a2900c6d0a5d7577a669ed (patch) | |
tree | e9503d2a5634aaa068f5fa9b3e013b19f6aa91ce /.cirrus.yml | |
parent | c109e7d51c9c5614aafce184c63b52ad2e859eb2 (diff) |
ci: Integrate ccache into MSVC build
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index e07ff9796e..7d2a945c51 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -85,6 +85,8 @@ task: CI_VCPKG_TAG: '2022.02.23' VCPKG_DOWNLOADS: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\downloads' VCPKG_DEFAULT_BINARY_CACHE: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\archives' + CCACHE_DIR: 'C:\Users\ContainerAdministrator\AppData\Local\ccache' + WRAPPED_CL: 'C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\ci\test\wrapped-cl.bat' QT_DOWNLOAD_URL: 'https://download.qt.io/official_releases/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.zip' QT_LOCAL_PATH: 'C:\qt-everywhere-src-5.15.2.zip' QT_SOURCE_DIR: 'C:\qt-everywhere-src-5.15.2' @@ -134,9 +136,13 @@ task: - msbuild -version populate_script: - mkdir %VCPKG_DEFAULT_BINARY_CACHE% - install_python_script: + ccache_cache: + folder: '%CCACHE_DIR%' + install_tools_script: + - choco install --yes --no-progress ccache - choco install --yes --no-progress python3 --version=3.9.6 - pip install zmq + - ccache --version - python -VV install_vcpkg_script: - cd .. @@ -148,9 +154,12 @@ task: - .\vcpkg integrate install - .\vcpkg version build_script: + - '%x64_NATIVE_TOOLS%' - cd %CIRRUS_WORKING_DIR% + - ccache --zero-stats - python build_msvc\msvc-autogen.py - - msbuild build_msvc\bitcoin.sln -property:Configuration=Release -maxCpuCount -verbosity:minimal -noLogo + - msbuild build_msvc\bitcoin.sln -property:CLToolExe=%WRAPPED_CL% -property:Configuration=Release -maxCpuCount -verbosity:minimal -noLogo + - ccache --show-stats unit_tests_script: - src\test_bitcoin.exe -l test_suite - src\bench_bitcoin.exe > NUL |