-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vcpkg manifest and binary caching (#3329)
* binary cache and manifest * update packages * udpate * add cache to private pipeline * next try * aver * other * again * aver quick * more * this way * again * one more * print * test * use depend * more deps * dep * Apply suggestions from code review Co-authored-by: Daniel Jurek <djurek@microsoft.com> * updated to use group variable * update identity * end line * Update vcpkg.json * Apply suggestions from code review * cspell * remove comment * updates * make cache mode depend on SAS env var * map env var only for internal pipelines * other approach * what about this * and this * try * amd * another * extra step * typo * override for internal * use default succeded * azure core update manifest * a * run cmake-generate nightly as well * check for SAS * check cache * no secret * fix is secret * pass explicit * use secret all the time * char * One more * export * echos * last * array * remove question * ok * weird * use account key * substring * VCPKG_BINARY_SOURCES * Add module installation * task: * Correct pathing for module * update source gen * format * update spelling * IsWindoows * Use pwsh * Cannot clobber with PSModule-Helpers. Attempt plain install * Attempt plain install * Revert unnecessary change to Update-DocsMsToc.ps1 * template ready * curl is required on Windows as well for some CI gates * attestation * fix format Co-authored-by: Daniel Jurek <djurek@microsoft.com>
- Loading branch information
1 parent
01d0c8c
commit 835f156
Showing
29 changed files
with
354 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
param( | ||
[string] $StorageAccountKey | ||
) | ||
Install-Module "Az.Storage" -AllowClobber -Force | ||
|
||
$ctx = New-AzStorageContext ` | ||
-StorageAccountName 'cppvcpkgcache' ` | ||
-StorageAccountKey $StorageAccountKey | ||
$token = New-AzStorageAccountSASToken ` | ||
-Service Blob ` | ||
-ResourceType Object ` | ||
-Permission "rwc" ` | ||
-Context $ctx | ||
$vcpkgBinarySourceSas = $token.Substring(1) | ||
|
||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "azure-security-attestation-cpp", | ||
"version-semver": "1.0.0-beta.1", | ||
"dependencies": [ | ||
{ | ||
"name": "azure-core-cpp" | ||
}, | ||
{ | ||
"name": "vcpkg-cmake" | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config" | ||
}, | ||
{ | ||
"name": "openssl" | ||
} | ||
] | ||
} |
Oops, something went wrong.