Skip to content

Commit

Permalink
Set VCPKG_ROOT (#3938)
Browse files Browse the repository at this point in the history
* Set VCPKG_ROOT

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

Co-authored-by: Ben Broderick Phillips <[email protected]>

Co-authored-by: Ben Broderick Phillips <[email protected]>
  • Loading branch information
danieljurek and benbp authored Sep 20, 2022
1 parent 237c03a commit 9295737
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions eng/pipelines/templates/stages/archetype-cpp-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ stages:
parameters:
RepoOwner: Azure
RepoName: azure-sdk-vcpkg-betas
SetVcpkgRoot: false

- template: /eng/pipelines/templates/steps/vcpkg-publish.yml
parameters:
Expand Down
8 changes: 8 additions & 0 deletions eng/pipelines/templates/steps/vcpkg-clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
RepoOwner: not-set
RepoName: vcpkg
PRBranchName: not-set
SetVcpkgRoot: true

steps:
- pwsh: |
Expand All @@ -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"
Expand Down

0 comments on commit 9295737

Please sign in to comment.