@@ -7,41 +7,42 @@ clone_depth: 5
7
7
environment :
8
8
APPVEYOR_SAVE_CACHE_ON_ERROR : true
9
9
CLCACHE_SERVER : 1
10
- PACKAGES : berkeleydb boost-filesystem boost-multi-index boost-signals2 boost-test boost-thread libevent openssl rapidcheck zeromq double-conversion
11
10
PATH : ' C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%'
12
11
PYTHONUTF8 : 1
13
12
QT_DOWNLOAD_URL : ' https://github.com/sipsorcery/qt_win_binary/releases/download/v1.4/Qt5.9.8_x64_static_vs2019.zip'
14
13
QT_DOWNLOAD_HASH : ' f285cbb02bec3b3f3cc2621e3fa7d5edf0d6a66fa30c57859e583acda954ea80'
15
14
QT_LOCAL_PATH : ' C:\Qt5.9.8_x64_static_vs2019'
16
15
VCPKG_INSTALL_PATH : ' C:\tools\vcpkg\installed'
17
16
cache :
18
- - C:\tools\vcpkg\installed
17
+ - C:\tools\vcpkg\installed -> build_msvc\vcpkg-packages.txt
19
18
- C:\Users\appveyor\clcache -> .appveyor.yml, build_msvc\**, **\Makefile.am, **\*.vcxproj.in
20
19
- C:\Qt5.9.8_x64_static_vs2019
21
20
install :
22
21
-
cmd :
pip install --quiet git+https://github.com/frerich/[email protected]
23
22
# Disable zmq test for now since python zmq library on Windows would cause Access violation sometimes.
24
23
# - cmd: pip install zmq
25
24
# 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 :
29
28
# 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.
31
30
- ps : |
32
- cd c:\tools\vcpkg
31
+ $env:PACKAGES = Get-Content -Path build_msvc\vcpkg-packages.txt
32
+ Write-Host "vcpkg list: $env:PACKAGES"
33
33
if(!(Test-Path -Path ($env:VCPKG_INSTALL_PATH))) {
34
+ cd c:\tools\vcpkg
34
35
$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)"
36
36
git pull origin master
37
37
.\bootstrap-vcpkg.bat
38
+ Add-Content "C:\tools\vcpkg\triplets\$env:PLATFORM-windows-static.cmake" "set(VCPKG_BUILD_TYPE release)"
38
39
.\vcpkg install --triplet $env:PLATFORM-windows-static $env:PACKAGES.split() > $null
40
+ cd "$env:APPVEYOR_BUILD_FOLDER"
39
41
}
40
42
else {
41
- Write-Host "vcpkg packages already installed (to reinstall purge appveyor job's cache) ."
43
+ Write-Host "required vcpkg packages already installed."
42
44
}
43
- .\vcpkg integrate install
44
- cd "$env:APPVEYOR_BUILD_FOLDER"
45
+ c:\tools\vcpkg\vcpkg integrate install
45
46
before_build :
46
47
- ps : clcache -M 536870912
47
48
# Powershell block below is to download and extract the Qt static libraries. The pseudo code is:
0 commit comments