Skip to content

Commit e8692cf

Browse files
committed
ci: Improve vcpkg binary cache settings
This change comes with two improvements: 1) using the VCPKG_DEFAULT_BINARY_CACHE variable drops dependency on vcpkg default cached archives location, and improves readability 2) two obvious cases when binary cache is invalidated are defined, that guaranties it won't grow boundlessly when, for example, vcpkg has being updated.
1 parent b00646b commit e8692cf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.cirrus.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ task:
8686
PATH: 'C:\jom;C:\Python39;C:\Python39\Scripts;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin;%PATH%'
8787
PYTHONUTF8: 1
8888
CI_VCPKG_TAG: '2021.05.12'
89+
VCPKG_DEFAULT_BINARY_CACHE: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\archives'
8990
QT_DOWNLOAD_URL: 'https://download.qt.io/official_releases/qt/5.12/5.12.11/single/qt-everywhere-src-5.12.11.zip'
9091
QT_LOCAL_PATH: 'C:\qt-everywhere-src-5.12.11.zip'
9192
QT_SOURCE_DIR: 'C:\qt-everywhere-src-5.12.11'
@@ -121,7 +122,13 @@ task:
121122
- jom
122123
- jom install
123124
vcpkg_binary_cache:
124-
folder: 'C:\Users\ContainerAdministrator\AppData\Local\vcpkg\archives'
125+
folder: '%VCPKG_DEFAULT_BINARY_CACHE%'
126+
reupload_on_changes: true
127+
fingerprint_script:
128+
- echo %CI_VCPKG_TAG%
129+
- msbuild -version
130+
populate_script:
131+
- mkdir %VCPKG_DEFAULT_BINARY_CACHE%
125132
install_python_script:
126133
- choco install --yes --no-progress python3 --version=3.9.6
127134
- pip install zmq

0 commit comments

Comments
 (0)