@@ -5,36 +5,41 @@ configuration: Release
5
5
platform : x64
6
6
environment :
7
7
APPVEYOR_SAVE_CACHE_ON_ERROR : true
8
- cache : C:\tools\vcpkg\installed\
8
+ CLCACHE_SERVER : 1
9
+ PACKAGES : boost-filesystem boost-signals2 boost-interprocess boost-test libevent openssl zeromq berkeleydb secp256k1 leveldb
10
+ cache :
11
+ - C:\tools\vcpkg\installed
12
+ - C:\Users\appveyor\clcache
13
+ - build_msvc\cache
9
14
init :
10
- - cmd : set PATH=C:\Python36-x64;%PATH%
15
+ - cmd : set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
16
+ install :
17
+ - cmd : pip install git+https://github.com/frerich/clcache.git
18
+ - ps : $packages = $env:PACKAGES -Split ' '
19
+ - ps : for ($i=0; $i -lt $packages.length; $i++) {
20
+ $env:ALL_PACKAGES += $packages[$i] + ":" + $env:PLATFORM + "-windows-static "
21
+ }
22
+ - cmd : git -C C:\Tools\vcpkg pull # This is a temporary fix, can be removed after appveyor update its image to include Microsoft/vcpkg#4046
23
+ - cmd : vcpkg install %ALL_PACKAGES%
24
+ - cmd : vcpkg upgrade --no-dry-run
25
+ - cmd : del /s /q C:\Tools\vcpkg\installed\%PLATFORM%-windows-static\debug # Remove unused debug library
11
26
before_build :
12
- - ps : >-
13
- $packages = @(
14
- "boost-filesystem",
15
- "boost-signals2",
16
- "boost-interprocess",
17
- "boost-test",
18
- "libevent",
19
- "openssl",
20
- "zeromq",
21
- "berkeleydb",
22
- "secp256k1",
23
- "leveldb"
24
- )
25
-
26
- for ($i=0; $i -lt $packages.length; $i++) {
27
- $all_packages += $packages[$i] + ":" + $env:PLATFORM + "-windows-static "
28
- }
29
-
30
- git -C C:\Tools\vcpkg pull # This is a temporary fix, can be removed after appveyor update its image to include Microsoft/vcpkg#4046
31
-
32
- Invoke-Expression -Command "vcpkg install $all_packages"
27
+ - cmd : if not exist build_msvc\cache\ (del build_msvc\cache & mkdir build_msvc\cache)
28
+ - cmd : if not exist build_msvc\%PLATFORM%\%CONFIGURATION%\ (mkdir build_msvc\%PLATFORM%\%CONFIGURATION%)
29
+ - cmd : if exist build_msvc\cache\*.iobj (move build_msvc\cache\* build_msvc\%PLATFORM%\%CONFIGURATION%\)
30
+ - cmd : clcache -M 2147483648
33
31
- cmd : python build_msvc\msvc-autogen.py
34
- build :
35
- project : build_msvc\bitcoin.sln
36
- parallel : true
37
- verbosity : minimal
32
+ - ps : $files = (Get-ChildItem -Recurse | where {$_.extension -eq ".vcxproj"}).FullName
33
+ - ps : for ($i = 0; $i -lt $files.length; $i++) {
34
+ (Get-Content $files[$i]).Replace("</RuntimeLibrary>", "</RuntimeLibrary><DebugInformationFormat>None</DebugInformationFormat>").Replace("NDEBUG;", "") | Set-Content $files[$i]
35
+ }
36
+ - ps : Start-Process clcache-server
37
+ build_script :
38
+ - cmd : msbuild /p:TrackFileAccess=false /p:CLToolExe=clcache.exe build_msvc\bitcoin.sln /m /v:q /nowarn:C4244;C4267;C4715 /nologo
39
+ after_build :
40
+ - cmd : move build_msvc\%PLATFORM%\%CONFIGURATION%\*.iobj build_msvc\cache\
41
+ - cmd : move build_msvc\%PLATFORM%\%CONFIGURATION%\*.ipdb build_msvc\cache\
42
+ - cmd : del C:\Users\appveyor\clcache\stats.txt
38
43
test_script :
39
- - cmd : build_msvc\%PLATFORM%\Release \test_bitcoin.exe
44
+ - cmd : build_msvc\%PLATFORM%\%CONFIGURATION% \test_bitcoin.exe
40
45
deploy : off
0 commit comments