@@ -6,12 +6,11 @@ platform: x64
6
6
environment :
7
7
APPVEYOR_SAVE_CACHE_ON_ERROR : true
8
8
CLCACHE_SERVER : 1
9
- PACKAGES : boost-filesystem boost-signals2 boost-interprocess boost- test libevent openssl zeromq berkeleydb secp256k1 leveldb
9
+ PACKAGES : boost-filesystem boost-signals2 boost-test libevent openssl zeromq berkeleydb secp256k1 leveldb
10
10
PYTHONIOENCODING : utf-8
11
11
cache :
12
12
- C:\tools\vcpkg\installed
13
13
- C:\Users\appveyor\clcache
14
- - build_msvc\cache
15
14
init :
16
15
- cmd : set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
17
16
install :
@@ -23,32 +22,39 @@ install:
23
22
$env:ALL_PACKAGES += $packages[$i] + ":" + $env:PLATFORM + "-windows-static "
24
23
}
25
24
- 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
25
+ - cmd : C:\Tools\vcpkg\bootstrap-vcpkg.bat
26
+ - cmd : vcpkg remove --recurse --outdated
26
27
- cmd : vcpkg install %ALL_PACKAGES%
27
- - cmd : vcpkg upgrade --no-dry-run
28
28
- cmd : del /s /q C:\Tools\vcpkg\installed\%PLATFORM%-windows-static\debug # Remove unused debug library
29
29
before_build :
30
- - cmd : if not exist build_msvc\cache\ (del build_msvc\cache & mkdir build_msvc\cache)
31
- - cmd : if not exist build_msvc\%PLATFORM%\%CONFIGURATION%\ (mkdir build_msvc\%PLATFORM%\%CONFIGURATION%)
32
- - cmd : if exist build_msvc\cache\*.iobj (move build_msvc\cache\* build_msvc\%PLATFORM%\%CONFIGURATION%\)
33
- - cmd : clcache -M 2147483648
30
+ - ps : clcache -M 536870912
34
31
- cmd : python build_msvc\msvc-autogen.py
35
32
- ps : $files = (Get-ChildItem -Recurse | where {$_.extension -eq ".vcxproj"}).FullName
36
- - ps : for ($i = 0; $i -lt $files.length; $i++) {
37
- (Get-Content $files[$i]).Replace("</RuntimeLibrary>", "</RuntimeLibrary><DebugInformationFormat>None</DebugInformationFormat>").Replace("NDEBUG;", "") | Set-Content $files[$i]
33
+ - ps : for (${i} = 0; ${i} -lt ${files}.length; ${i}++) {
34
+ ${content} = (Get-Content ${files}[${i}]);
35
+ ${content} = ${content}.Replace("</RuntimeLibrary>", "</RuntimeLibrary><DebugInformationFormat>None</DebugInformationFormat>");
36
+ ${content} = ${content}.Replace("<WholeProgramOptimization>true", "<WholeProgramOptimization>false");
37
+ ${content} = ${content}.Replace("NDEBUG;", "");
38
+ Set-Content ${files}[${i}] ${content};
38
39
}
39
40
- ps : Start-Process clcache-server
41
+ - ps : fsutil behavior set disablelastaccess 0 # Enable Access time feature on Windows (for clcache)
40
42
build_script :
41
43
- cmd : msbuild /p:TrackFileAccess=false /p:CLToolExe=clcache.exe build_msvc\bitcoin.sln /m /v:q /nowarn:C4244;C4267;C4715 /nologo
42
44
after_build :
43
- - cmd : move build_msvc\%PLATFORM%\%CONFIGURATION%\*.iobj build_msvc\cache\
44
- - cmd : move build_msvc\%PLATFORM%\%CONFIGURATION%\*.ipdb build_msvc\cache\
45
- - cmd : del C:\Users\appveyor\clcache\stats.txt
45
+ - ps : fsutil behavior set disablelastaccess 0 # Disable Access time feature on Windows (better performance)
46
+ - ps : clcache -z
46
47
before_test :
47
48
- ps : ${conf_ini} = (Get-Content([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini.in")))
48
- - ps : ${conf_ini} = $conf_ini.Replace("@abs_top_srcdir@", ${env:APPVEYOR_BUILD_FOLDER}).Replace("@abs_top_builddir@", ${env:APPVEYOR_BUILD_FOLDER}).Replace("@EXEEXT@", ".exe")
49
- - ps : ${conf_ini} = $conf_ini.Replace("@ENABLE_WALLET_TRUE@", "").Replace("@BUILD_BITCOIN_CLI_TRUE@", "").Replace("@BUILD_BITCOIND_TRUE@", "").Replace("@ENABLE_ZMQ_TRUE@", "")
49
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@abs_top_srcdir@", ${env:APPVEYOR_BUILD_FOLDER})
50
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@abs_top_builddir@", ${env:APPVEYOR_BUILD_FOLDER})
51
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@EXEEXT@", ".exe")
52
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@ENABLE_WALLET_TRUE@", "")
53
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@BUILD_BITCOIN_CLI_TRUE@", "")
54
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@BUILD_BITCOIND_TRUE@", "")
55
+ - ps : ${conf_ini} = ${conf_ini}.Replace("@ENABLE_ZMQ_TRUE@", "")
50
56
- ps : ${utf8} = New-Object System.Text.UTF8Encoding ${false}
51
- - ps : ' [IO.File]::WriteAllLines([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini"), $conf_ini, ${utf8})'
57
+ - ps : ' [IO.File]::WriteAllLines([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini"), ${ conf_ini} , ${utf8})'
52
58
- ps : move "build_msvc\${env:PLATFORM}\${env:CONFIGURATION}\*.exe" src
53
59
test_script :
54
60
- cmd : src\test_bitcoin.exe
0 commit comments