Skip to content

Commit 112cf31

Browse files
authored
Use vcpkg steps from eng/common (Azure#3215)
Partial Azure/azure-sdk-tools#12291 vcpkg recently released a breaking change that caused errors in 4 different repos. Since vcpkg has spread to wider use, this PR uses a unified vcpkg specified in `eng/common` which will make it easier to recover from breaking changes to vcpkg in the future.
1 parent ffcbee3 commit 112cf31

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

eng/pipelines/templates/steps/vcpkg.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
steps:
2-
- pwsh: |
3-
Write-Host '##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azcopy,https://azuresdkartifacts.blob.core.windows.net/public-vcpkg-container,read'
4-
Write-Host '##vso[task.setvariable variable=X_VCPKG_ASSET_SOURCES_SECRET;issecret=true;]clear;x-azurl,https://azuresdkartifacts.blob.core.windows.net/public-vcpkg-container,,read'
5-
displayName: Set vcpkg variables
2+
- template: /eng/common/pipelines/templates/steps/set-vcpkg-cache-vars.yml
63

74
- script: vcpkg --version
85
condition: >-
@@ -12,19 +9,6 @@ steps:
129
)
1310
displayName: vcpkg --version
1411

15-
- ${{if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
16-
- task: AzurePowerShell@5
17-
displayName: Set vcpkg write-mode cache
18-
inputs:
19-
ScriptType: FilePath
20-
ScriptPath: eng/scripts/Set-VcpkgWriteModeCache.ps1
21-
azureSubscription: Azure SDK Artifacts
22-
azurePowerShellVersion: LatestVersion
23-
pwsh: true
24-
# This step is idempotent and can be run multiple times in cases of
25-
# failure and partial execution.
26-
retryCountOnTaskFailure: 3
27-
2812
- pwsh: |
2913
vcpkg install
3014
Write-Host "##vso[task.setvariable variable=VCPKG_ROOT;]${env:VCPKG_INSTALLATION_ROOT}"

0 commit comments

Comments
 (0)