@@ -7,41 +7,42 @@ clone_depth: 5
77environment :
88 APPVEYOR_SAVE_CACHE_ON_ERROR : true
99 CLCACHE_SERVER : 1
10- PACKAGES : berkeleydb boost-filesystem boost-multi-index boost-signals2 boost-test boost-thread libevent openssl rapidcheck zeromq double-conversion
1110 PATH : ' C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%'
1211 PYTHONUTF8 : 1
1312 QT_DOWNLOAD_URL : ' https://github.com/sipsorcery/qt_win_binary/releases/download/v1.4/Qt5.9.8_x64_static_vs2019.zip'
1413 QT_DOWNLOAD_HASH : ' f285cbb02bec3b3f3cc2621e3fa7d5edf0d6a66fa30c57859e583acda954ea80'
1514 QT_LOCAL_PATH : ' C:\Qt5.9.8_x64_static_vs2019'
1615 VCPKG_INSTALL_PATH : ' C:\tools\vcpkg\installed'
1716cache :
18- - C:\tools\vcpkg\installed
17+ - C:\tools\vcpkg\installed -> build_msvc\vcpkg-packages.txt
1918- C:\Users\appveyor\clcache -> .appveyor.yml, build_msvc\**, **\Makefile.am, **\*.vcxproj.in
2019- C:\Qt5.9.8_x64_static_vs2019
2120install :
2221- cmd : pip install --quiet git+https://github.com/frerich/clcache.git@v4.2.0
2322# Disable zmq test for now since python zmq library on Windows would cause Access violation sometimes.
2423# - cmd: pip install zmq
2524# Powershell block below is to install the c++ dependencies via vcpkg. The pseudo code is:
26- # 1. If the vcpkg install directory exists assume dependencies are installed and do nothing. To
27- # force a fresh install of the packages delete the job's appveyor cache.
28- # 2. Otherwise :
25+ # 1. Check whether the vcpkg install directory exists (note that updating the vcpkg-packages.txt file
26+ # will cause the appveyor cache rules to invalidate the directory)
27+ # 2. If the directory is missing :
2928# a. Update the vcpkg source (including port files) and build the vcpkg binary,
30- # b. Install the required packages.
29+ # b. Install the missing packages.
3130- ps : |
32- cd c:\tools\vcpkg
31+ $env:PACKAGES = Get-Content -Path build_msvc\vcpkg-packages.txt
32+ Write-Host "vcpkg list: $env:PACKAGES"
3333 if(!(Test-Path -Path ($env:VCPKG_INSTALL_PATH))) {
34+ cd c:\tools\vcpkg
3435 $env:GIT_REDIRECT_STDERR = '2>&1' # git is writing non-errors to STDERR when doing git pull. Send to STDOUT instead.
35- Add-Content "C:\tools\vcpkg\triplets\$env:PLATFORM-windows-static.cmake" "set(VCPKG_BUILD_TYPE release)"
3636 git pull origin master
3737 .\bootstrap-vcpkg.bat
38+ Add-Content "C:\tools\vcpkg\triplets\$env:PLATFORM-windows-static.cmake" "set(VCPKG_BUILD_TYPE release)"
3839 .\vcpkg install --triplet $env:PLATFORM-windows-static $env:PACKAGES.split() > $null
40+ cd "$env:APPVEYOR_BUILD_FOLDER"
3941 }
4042 else {
41- Write-Host "vcpkg packages already installed (to reinstall purge appveyor job's cache) ."
43+ Write-Host "required vcpkg packages already installed."
4244 }
43- .\vcpkg integrate install
44- cd "$env:APPVEYOR_BUILD_FOLDER"
45+ c:\tools\vcpkg\vcpkg integrate install
4546before_build :
4647- ps : clcache -M 536870912
4748# Powershell block below is to download and extract the Qt static libraries. The pseudo code is:
0 commit comments