@@ -50,13 +50,17 @@ resources:
50
50
- repository : self
51
51
type : git
52
52
ref : refs/heads/main
53
+ - repository : Microsoft/vcpkg
54
+ name : vcpkg
55
+ type : github
56
+ ref : refs/tags/$(VCPKG_TAG)
57
+ path : $(Build.SourcesDirectory)/vcpkg
53
58
54
59
name : $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
55
60
56
61
variables :
57
62
Codeql.Enabled : false
58
63
VCPKG_CMAKE_DIR : ' $(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake'
59
- GITHUB_PAT : $(GITHUBPUBLICTOKEN)
60
64
VS_GENERATOR : ' Visual Studio 17 2022'
61
65
WIN10_SDK : ' 10.0.19041.0'
62
66
WIN11_SDK : ' 10.0.22000.0'
@@ -218,16 +222,16 @@ jobs:
218
222
- checkout : self
219
223
clean : true
220
224
fetchTags : false
221
- - task : CmdLine@2
225
+ - checkout : vcpkg
222
226
displayName : Fetch VCPKG
223
- inputs :
224
- script : git clone --quiet --no-tags --depth=1 --branch $(VCPKG_TAG) https://%GITHUB_PAT%@github.com/microsoft/vcpkg.git
225
- workingDirectory : $(Build.SourcesDirectory)
227
+ clean : true
228
+ fetchTags : false
229
+ fetchDepth : 1
226
230
- task : CmdLine@2
227
231
displayName : VCPKG Bootstrap
228
232
inputs :
229
233
script : call bootstrap-vcpkg.bat
230
- workingDirectory : $(Build.SourcesDirectory)\ vcpkg
234
+ workingDirectory : $(Build.SourcesDirectory)/ vcpkg
231
235
- task : CmdLine@2
232
236
displayName : VCPKG install headers
233
237
inputs :
@@ -249,7 +253,7 @@ jobs:
249
253
@echo --- ERROR: VCPKG FAILED ---
250
254
exit /b 1
251
255
252
- workingDirectory : $(Build.SourcesDirectory)\ vcpkg
256
+ workingDirectory : $(Build.SourcesDirectory)/ vcpkg
253
257
254
258
- task : CMake@1
255
259
displayName : ' CMake (MSVC): Config x64'
0 commit comments