Add X_VCPKG_ASSET_SOURCES to vcpkg cache configuration (#4824)
* Add X_VCPKG_ASSET_SOURCES to vcpkg cache configuration * Prefix with quesiton mark * Remove question mark * add --debug * /,? * x-azurl * Remove --debug * Test no binary cache * Clear * Ensure ending of X_VCPKG_ASSET_SOURCES * Include secrets * Undo some investigation * + _SECRET * Revert testing-related changes
This commit is contained in:
parent
04a7477d2e
commit
04409f28df
1
.vscode/cspell.json
vendored
1
.vscode/cspell.json
vendored
@ -47,6 +47,7 @@
|
|||||||
"azsdkengsys",
|
"azsdkengsys",
|
||||||
"azurecr",
|
"azurecr",
|
||||||
"azuresdk",
|
"azuresdk",
|
||||||
|
"azurl",
|
||||||
"azuresdkforcpp",
|
"azuresdkforcpp",
|
||||||
"centralus",
|
"centralus",
|
||||||
"centraluseuap",
|
"centraluseuap",
|
||||||
|
|||||||
@ -21,6 +21,7 @@ steps:
|
|||||||
displayName: cmake generate
|
displayName: cmake generate
|
||||||
env:
|
env:
|
||||||
VCPKG_BINARY_SOURCES: $(VCPKG_BINARY_SOURCES_SECRET)
|
VCPKG_BINARY_SOURCES: $(VCPKG_BINARY_SOURCES_SECRET)
|
||||||
|
X_VCPKG_ASSET_SOURCES: $(X_VCPKG_ASSET_SOURCES_SECRET)
|
||||||
|
|
||||||
# Core should build all cmake tagets
|
# Core should build all cmake tagets
|
||||||
- ${{ if and(eq(parameters.Build, true), eq(parameters.ServiceDirectory, 'core')) }}:
|
- ${{ if and(eq(parameters.Build, true), eq(parameters.ServiceDirectory, 'core')) }}:
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
steps:
|
steps:
|
||||||
- pwsh: |
|
- 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://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-asset-container,,read"
|
||||||
displayName: Set Vcpkg Variables
|
displayName: Set Vcpkg Variables
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
|
|||||||
@ -39,3 +39,4 @@ $vcpkgBinarySourceSas = $token.Substring(1)
|
|||||||
|
|
||||||
Write-Host "Setting vcpkg binary cache to read and write"
|
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/public-vcpkg-container,$vcpkgBinarySourceSas,readwrite"
|
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-container,$vcpkgBinarySourceSas,readwrite"
|
||||||
|
Write-Host "##vso[task.setvariable variable=X_VCPKG_ASSET_SOURCES_SECRET;issecret=true;]clear;x-azurl,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-asset-container/,?$vcpkgBinarySourceSas,readwrite"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user