mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
Merge bitcoin/bitcoin#24540: ci: Integrate ccache into MSVC build
3a53927f03ci: Integrate ccache into MSVC build (Hennadii Stepanov) Pull request description: [ccache 4.6](https://ccache.dev/releasenotes.html#_ccache_4_6): > Added support for caching calls to Microsoft Visual C++ (MSVC) Integrated into our native Windows CI task. [On master](url) (c109e7d51c):  [This PR](https://cirrus-ci.com/task/6572984340054016):  ``` Summary: Hits: 222 / 222 (100.0 %) Direct: 222 / 222 (100.0 %) Preprocessed: 0 / 0 Misses: 0 Direct: 0 Preprocessed: 0 Errors: 7 Uncacheable: 9 Primary storage: Hits: 444 / 444 (100.0 %) Misses: 0 Cache size (GB): 0.04 / 5.00 (0.86 %) Use the -v/--verbose option for more details. ``` Top commit has no ACKs. Tree-SHA512: d8cf91d8e75a5187cf456960bdf759f857fb9a9b0c4087e5e46ccbe2202aca5f1b9b38a47ec54d98e885c0f5d78de93a3188fb966fa5b346e81907c211ba1e79
This commit is contained in:
13
.cirrus.yml
13
.cirrus.yml
@@ -86,6 +86,8 @@ task:
|
|||||||
CI_VCPKG_TAG: '2022.02.23'
|
CI_VCPKG_TAG: '2022.02.23'
|
||||||
VCPKG_DOWNLOADS: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\downloads'
|
VCPKG_DOWNLOADS: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\downloads'
|
||||||
VCPKG_DEFAULT_BINARY_CACHE: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\archives'
|
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_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_LOCAL_PATH: 'C:\qt-everywhere-src-5.15.2.zip'
|
||||||
QT_SOURCE_DIR: 'C:\qt-everywhere-src-5.15.2'
|
QT_SOURCE_DIR: 'C:\qt-everywhere-src-5.15.2'
|
||||||
@@ -135,9 +137,13 @@ task:
|
|||||||
- msbuild -version
|
- msbuild -version
|
||||||
populate_script:
|
populate_script:
|
||||||
- mkdir %VCPKG_DEFAULT_BINARY_CACHE%
|
- 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
|
- choco install --yes --no-progress python3 --version=3.9.6
|
||||||
- pip install zmq
|
- pip install zmq
|
||||||
|
- ccache --version
|
||||||
- python -VV
|
- python -VV
|
||||||
install_vcpkg_script:
|
install_vcpkg_script:
|
||||||
- cd ..
|
- cd ..
|
||||||
@@ -149,9 +155,12 @@ task:
|
|||||||
- .\vcpkg integrate install
|
- .\vcpkg integrate install
|
||||||
- .\vcpkg version
|
- .\vcpkg version
|
||||||
build_script:
|
build_script:
|
||||||
|
- '%x64_NATIVE_TOOLS%'
|
||||||
- cd %CIRRUS_WORKING_DIR%
|
- cd %CIRRUS_WORKING_DIR%
|
||||||
|
- ccache --zero-stats
|
||||||
- python build_msvc\msvc-autogen.py
|
- 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:
|
unit_tests_script:
|
||||||
- src\test_bitcoin.exe -l test_suite
|
- src\test_bitcoin.exe -l test_suite
|
||||||
- src\bench_bitcoin.exe > NUL
|
- src\bench_bitcoin.exe > NUL
|
||||||
|
|||||||
1
ci/test/wrapped-cl.bat
Normal file
1
ci/test/wrapped-cl.bat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ccache cl %*
|
||||||
Reference in New Issue
Block a user