Set VCPKG_ROOT (#3938)

* Set VCPKG_ROOT

* Update eng/pipelines/templates/steps/vcpkg-clone.yml

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Daniel Jurek 2022-09-20 10:20:06 -07:00 committed by GitHub
parent 237c03a9d9
commit 92957377fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -144,6 +144,7 @@ stages:
parameters:
RepoOwner: Azure
RepoName: azure-sdk-vcpkg-betas
SetVcpkgRoot: false
- template: /eng/pipelines/templates/steps/vcpkg-publish.yml
parameters:

View File

@ -3,6 +3,7 @@ parameters:
RepoOwner: not-set
RepoName: vcpkg
PRBranchName: not-set
SetVcpkgRoot: true
steps:
- pwsh: |
@ -14,6 +15,13 @@ steps:
}
displayName: Clone vcpkg (${{ parameters.RepoOwner }}/${{ parameters.RepoName }})
- ${{ if eq(parameters.SetVcpkgRoot, true) }}:
- pwsh: |
$vcpkgRoot = Resolve-Path "${{ parameters.Workspace }}/${{ parameters.RepoName }}"
Write-Host "Set VCPKG_ROOT: $vcpkgRoot"
Write-Host "##vso[task.setvariable variable=VCPKG_ROOT]$vcpkgRoot"
displayName: Set VCPKG_ROOT
# Check out the PR branch if it's already in remote. Ignore failures.
- pwsh: |
$ErrorActionPreference = "Continue"