Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c8cbd19

Browse files
committedOct 4, 2024·
Rework ADO
1 parent ecdfe9b commit c8cbd19

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed
 

‎build/DirectXTex-GitHub-CMake-Dev17.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,17 @@ resources:
5050
- repository: self
5151
type: git
5252
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
5358

5459
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
5560

5661
variables:
5762
Codeql.Enabled: false
5863
VCPKG_CMAKE_DIR: '$(VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake'
59-
GITHUB_PAT: $(GITHUBPUBLICTOKEN)
6064
VS_GENERATOR: 'Visual Studio 17 2022'
6165
WIN10_SDK: '10.0.19041.0'
6266
WIN11_SDK: '10.0.22000.0'
@@ -218,16 +222,16 @@ jobs:
218222
- checkout: self
219223
clean: true
220224
fetchTags: false
221-
- task: CmdLine@2
225+
- checkout: vcpkg
222226
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
226230
- task: CmdLine@2
227231
displayName: VCPKG Bootstrap
228232
inputs:
229233
script: call bootstrap-vcpkg.bat
230-
workingDirectory: $(Build.SourcesDirectory)\vcpkg
234+
workingDirectory: $(Build.SourcesDirectory)/vcpkg
231235
- task: CmdLine@2
232236
displayName: VCPKG install headers
233237
inputs:
@@ -249,7 +253,7 @@ jobs:
249253
@echo --- ERROR: VCPKG FAILED ---
250254
exit /b 1
251255
252-
workingDirectory: $(Build.SourcesDirectory)\vcpkg
256+
workingDirectory: $(Build.SourcesDirectory)/vcpkg
253257

254258
- task: CMake@1
255259
displayName: 'CMake (MSVC): Config x64'

0 commit comments

Comments
 (0)
Please sign in to comment.