-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first take * grrrrr * qwqwq * ewqw * eewew * put back * pipeline * Set read-only VCPKG_BINARY_SOURCES_SECRET * Pass InstallLanguageSteps through the perf template * blop pipeline * path * ';l'l; * add support for sync param * --sync flag support * typo * sync * sync to y * for PR * clang Co-authored-by: Daniel Jurek <[email protected]>
- Loading branch information
1 parent
90f1ff9
commit fc50c08
Showing
10 changed files
with
95 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ | |
"HRESULT", | ||
"IMDS", | ||
"Intel", | ||
"issecret", | ||
"itfactor", | ||
"iusg", | ||
"jepio", | ||
|
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,11 @@ | ||
macro(SetPerfDeps PACKAGE VAR_RESULT) | ||
string(TOUPPER ${PACKAGE} SUFFIX) | ||
string(CONCAT VAR_TRIGGER "VCPKG-" ${SUFFIX}) | ||
message(STATUS "trigger name ${VAR_TRIGGER}") | ||
if(DEFINED ENV{${VAR_TRIGGER}}) | ||
find_package(${PACKAGE} $ENV{${VAR_TRIGGER}} EXACT) | ||
add_compile_definitions(${VAR_RESULT}="$ENV{${VAR_TRIGGER}}") | ||
else() | ||
add_compile_definitions(${VAR_RESULT}="source") | ||
endif() | ||
endmacro() |
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,21 @@ | ||
param baseName string = resourceGroup().name | ||
param location string = resourceGroup().location | ||
|
||
resource storageAccount 'Microsoft.Storage/storageAccounts@2019-06-01' = { | ||
name: '${baseName}blob' | ||
location: location | ||
kind: 'BlockBlobStorage' | ||
sku: { | ||
name: 'Premium_LRS' | ||
} | ||
} | ||
|
||
var name = storageAccount.name | ||
var key = storageAccount.listKeys().keys[0].value | ||
var connectionString = 'DefaultEndpointsProtocol=https;AccountName=${name};AccountKey=${key}' | ||
|
||
output AZURE_STORAGE_ACCOUNT_NAME string = name | ||
output AZURE_STORAGE_ACCOUNT_KEY string = key | ||
output AZURE_STORAGE_CONNECTION_STRING string = connectionString | ||
output STANDARD_STORAGE_CONNECTION_STRING string = connectionString | ||
output STORAGE_CONNECTION_STRING string = connectionString |
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,40 @@ | ||
parameters: | ||
- name: PackageVersions | ||
displayName: PackageVersions (regex of package versions to run) | ||
type: string | ||
default: '12|source' | ||
- name: Tests | ||
displayName: Tests (regex of tests to run) | ||
type: string | ||
default: '^(download|upload|list-blobs)$' | ||
- name: Arguments | ||
displayName: Arguments (regex of arguments to run) | ||
type: string | ||
default: '(10240)|(10485760)|(1073741824)|(5 )|(500 )|(50000 )' | ||
- name: Iterations | ||
displayName: Iterations (times to run each test) | ||
type: number | ||
default: '5' | ||
- name: AdditionalArguments | ||
displayName: AdditionalArguments (passed to PerfAutomation) | ||
type: string | ||
default: ' ' | ||
|
||
extends: | ||
template: /eng/pipelines/templates/jobs/perf.yml | ||
parameters: | ||
ServiceDirectory: storage/azure-storage-blobs | ||
Services: "^storage-blob$" | ||
PackageVersions: ${{ parameters.PackageVersions }} | ||
Tests: ${{ parameters.Tests }} | ||
Arguments: ${{ parameters.Arguments }} | ||
Iterations: ${{ parameters.Iterations }} | ||
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" | ||
displayName: Set Vcpkg Variables | ||
EnvVars: | ||
# This is set in the InstallLanguageSteps | ||
VCPKG_BINARY_SOURCES_SECRET: $(VCPKG_BINARY_SOURCES_SECRET) |
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