@@ -13,6 +13,7 @@ environment:
13
13
QT_DOWNLOAD_HASH : ' 9a8c6eb20967873785057fdcd329a657c7f922b0af08c5fde105cc597dd37e21'
14
14
QT_LOCAL_PATH : ' C:\Qt5.9.8_x64_static_vs2019'
15
15
VCPKG_INSTALL_PATH : ' C:\tools\vcpkg\installed'
16
+ VCPKG_COMMIT_ID : ' ed0df8ecc4ed7e755ea03e18aaf285fd9b4b4a74'
16
17
cache :
17
18
- C:\tools\vcpkg\installed -> build_msvc\vcpkg-packages.txt
18
19
- C:\Users\appveyor\clcache -> .appveyor.yml, build_msvc\**, **\Makefile.am, **\*.vcxproj.in
@@ -25,7 +26,7 @@ install:
25
26
# 1. Check whether the vcpkg install directory exists (note that updating the vcpkg-packages.txt file
26
27
# will cause the appveyor cache rules to invalidate the directory)
27
28
# 2. If the directory is missing:
28
- # a. Update the vcpkg source (including port files) and build the vcpkg binary,
29
+ # a. Checkout the vcpkg source (including port files) for the specific checkout and build the vcpkg binary,
29
30
# b. Install the missing packages.
30
31
- ps : |
31
32
$env:PACKAGES = Get-Content -Path build_msvc\vcpkg-packages.txt
@@ -34,6 +35,7 @@ install:
34
35
cd c:\tools\vcpkg
35
36
$env:GIT_REDIRECT_STDERR = '2>&1' # git is writing non-errors to STDERR when doing git pull. Send to STDOUT instead.
36
37
git pull origin master
38
+ git checkout $env:VCPKG_COMMIT_ID
37
39
.\bootstrap-vcpkg.bat
38
40
Add-Content "C:\tools\vcpkg\triplets\$env:PLATFORM-windows-static.cmake" "set(VCPKG_BUILD_TYPE release)"
39
41
.\vcpkg install --triplet $env:PLATFORM-windows-static $env:PACKAGES.split() > $null
0 commit comments