Move vcpkg cache to azuresdkartifacts (#6348)
This commit is contained in:
parent
713c8531db
commit
32b732cb78
5
.vscode/cspell.json
vendored
5
.vscode/cspell.json
vendored
@ -329,9 +329,10 @@
|
||||
"issecret",
|
||||
"PSScriptRoot",
|
||||
"BUILDID",
|
||||
"cppvcpkgcache",
|
||||
"azuresdkartifacts",
|
||||
"cmakegenerate",
|
||||
"cmakesourcegenerate"
|
||||
"cmakesourcegenerate",
|
||||
"rwcl"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@ -123,7 +123,7 @@ extends:
|
||||
AdditionalArguments: ${{ parameters.AdditionalArguments }}
|
||||
InstallLanguageSteps:
|
||||
- pwsh: |
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://azuresdkartifacts.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
displayName: Set Vcpkg Variables
|
||||
|
||||
EnvVars:
|
||||
|
||||
@ -36,7 +36,7 @@ extends:
|
||||
LanguageVersion: 'N/A'
|
||||
InstallLanguageSteps:
|
||||
- pwsh: |
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://azuresdkartifacts.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
displayName: Set Vcpkg Variables
|
||||
- ${{ if parameters.Profile }}:
|
||||
- task: Bash@3
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
steps:
|
||||
- pwsh: |
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
Write-Host "##vso[task.setvariable variable=X_VCPKG_ASSET_SOURCES_SECRET;issecret=true;]clear;x-azurl,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://azuresdkartifacts.blob.core.windows.net/public-vcpkg-container,,read"
|
||||
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"
|
||||
displayName: Set Vcpkg Variables
|
||||
|
||||
- script: vcpkg --version
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
param(
|
||||
[string] $StorageAccountName = 'cppvcpkgcache',
|
||||
[string] $StorageAccountName = 'azuresdkartifacts',
|
||||
[string] $StorageContainerName = 'public-vcpkg-container'
|
||||
)
|
||||
|
||||
@ -40,5 +40,5 @@ Write-Host "Ensure redaction of SAS tokens in logs"
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SAS_TOKEN;issecret=true;]$vcpkgBinarySourceSas"
|
||||
|
||||
Write-Host "Setting vcpkg binary cache to read and write"
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://cppvcpkgcache.blob.core.windows.net/$StorageContainerName,$vcpkgBinarySourceSas,readwrite"
|
||||
Write-Host "##vso[task.setvariable variable=X_VCPKG_ASSET_SOURCES_SECRET;issecret=true;]clear;x-azurl,https://cppvcpkgcache.blob.core.windows.net/$StorageContainerName,$vcpkgBinarySourceSas,readwrite"
|
||||
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://$StorageAccountName.blob.core.windows.net/$StorageContainerName,$vcpkgBinarySourceSas,readwrite"
|
||||
Write-Host "##vso[task.setvariable variable=X_VCPKG_ASSET_SOURCES_SECRET;issecret=true;]clear;x-azurl,https://$StorageAccountName.blob.core.windows.net/$StorageContainerName,$vcpkgBinarySourceSas,readwrite"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user