* Stress test (#3820) * mem leak fix * PR comments fix * PR comments * seems to work? * clang * curl again * add first stress test * also update gitignore * missing line * only linux * clang typo format * typo 2 * PR comments * cspell * remove terminator * Fixed the metadata for better handling (#3824) Co-authored-by: sima-zhu <sizhu@microsoft.com> * Update attestation core vcpkg dependency to latest GA version that is required. (#3830) * Update attestation core vcpkg dependency to latest GA version that is required. * Update vcpkg config.cmake to match the dependency version needed. * Remove winhttp (#3832) * remove refs to winhttp * this tsst only curl * Move perf.yml to eng/common (#3833) Co-authored-by: Mike Harder <mharder@microsoft.com> * Sync eng/common directory with azure-sdk-tools for PR 3656 (#3834) * someone wants to reference the test-proxy startup scripts externally. to make this easy on them we're parameterizing the root of the eng/common for easy use in that scenario * two leading $ signs on the definition of the certificate path was causing some issues! Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> * Update casing for 'verison' (#3821) Co-authored-by: Daniel Jurek <djurek@microsoft.com> * Print additional result summary formats to pipelines UI (#3842) Co-authored-by: Mike Harder <mharder@microsoft.com> * Sync eng/common directory with azure-sdk-tools for PR 3702 (#3843) * Add language-service to list of valid sample slugs * Update link to taxonomies Co-authored-by: Heath Stewart <heaths@microsoft.com> * Fix incorrect failure notification in vcpkg publishing (#3838) * Set up for testing of template pipeline * Override branches, set up for template GA release * More TODOs to prevent merging an unintended change * More removal of TestPipeline * Increment template version number * Use script to set package version * Check out the correct branch * branch parameter in the command * Use $(PublishToVcpkg) to determine if we should check for changes * dictionary syntax * Set GA package version to validate GA publish scenario * Update changelog * create-pull-request.yml optionally pushes changes * Output GH PR URI * Macro syntax with a variable set earlier * Move up to 1.2.0-beta.2 * beta.1 * Revert changelog * Revert testing-related changes * Revert vcpkg-clone.yml * Revert eng/common changes, ensure global $(HasChanges) is set properly * Changes to enable testing * 1.1.0-beta.1 * vcpkg clone should clone at configured branch * Clone "main" branch of vcpkg betas * Undo test-specific changes * More PR cleanup * PR cleanup * Helm charts (#3841) * helm chart * first pipe setup * poi * magiks * ewewe * stress * cleanup * pr * QFE and readme * clang * stupid clang , waste of time * ewqwewewrqrewewrqewrqwrqr * stupid clang * cspell * PR * try try again * clang again * Sync eng/common directory with azure-sdk-tools for PR 3661 (#3846) * Add full clone fallback to sparse checkout * Improve clone handling and overrides for sparse checkout * Use SkipSparseCheckout variable name Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Sync eng/common directory with azure-sdk-tools for PR 3735 (#3845) * Detect API changes using new snadboxinx approach * Added strictmode * Remove unset variable * Changes as per strict mode 3 * Rervert strict mode to allow language level fixes to merge first Co-authored-by: praveenkuttappan <prmarott@microsoft.com> * Increment version for keyvault releases (#3809) * Increment package version after release of azure-security-keyvault-keys * Increment package version after release of azure-security-keyvault-secrets * Increment package version after release of azure-security-keyvault-certificates * Removed hard dependency on opentelemetry version (#3844) * Revert "Add full clone fallback to sparse checkout (#3661)" (#3851) This reverts commit 7605ead00308dd20f20f2afe5acc4ec9900a2c47. Co-authored-by: Ben Broderick Phillips <ben@benbp.net> * Sync eng/common directory with azure-sdk-tools for PR 3753 (#3857) * Bump MacOs version to macos-11 * Update eng/common/scripts/job-matrix/tests/job-matrix-functions.tests.ps1 Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> * Update eng/common/scripts/job-matrix/tests/job-matrix-functions.tests.ps1 Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> Co-authored-by: sima-zhu <sizhu@microsoft.com> Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com> Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> * Bump macOs version to macos-11 (#3853) * Update CHANGELOG.md * Fix misleading step name in az module install (#3859) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Retry poll calls on EINTR (#3858) When signals are delievered to the process, calls here to poll may be interrupted and return with a spurious failure. The call instead should be restarted. * Fix bad path to sample matrix json (#3860) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Sync eng/common directory with azure-sdk-tools for PR 3826 (#3863) * Add link checking for stress CI * Remove region segment from stress testing links Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Core August releases (#3862) * Core August releases * cspell Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com> * Increment version for core releases (#3865) * Increment package version after release of azure-core * Increment package version after release of azure-core-tracing-opentelemetry * Storage Aug GA release (#3864) * CG only runs on internal (#3866) * Condition added and indentation changes * STG 79 80 81 Features (#3850) * Sync eng/common directory with azure-sdk-tools for PR 3860 (#3871) * updating pfx and cert * update the targeted version of the proxy as well Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> * Storage August Preview Release (#3868) * Storage August Preview Release * update versions * Increment version for storage releases (#3875) * Increment package version after release of azure-storage-common * Increment package version after release of azure-storage-blobs * Fix an issue that reason phrase is missing as expected from HTTP/2 server (#3879) * Fix an issue that reason phrase is missing as expected from HTTP/2 server * reverse the condition * compact comments * fix clang format * Update CODEOWNERS (#3881) * updated targeted proxy version to one that properly allows consumption of TLS certificates (#3888) Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> * Fix `azure-storage-blobs-cpp` beta install (#3889) Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com> * Fixed #3899 - Handle new OSX version correctly; reformatted platform-matrix JSON files (#3900) * Simpler get-binarysizes check for OSX (#3901) * Simpler get-binarysizes check for OSX * Missed wildcard * Sync eng/common directory with azure-sdk-tools for PR 3874 (#3907) * Add sparse checkout to perf template * Rename base template, add parameters * Add comment * Add TODO * Fix copy/pase bug, add language to artifacts path * Fix language ref * Fix python language * perf.yml extends perf-base.yml * Remove unnecessary base yml * Fetch pull request refs * Fix refs path * Fetch commitish if matches PR syntax * Print command before running * Add PR commitish to remote.origin.fetch * Add pool and vmimage parameters * Map ref under "refs/remotes/origin" * Add ref to refs/remotes/origin Co-authored-by: Mike Harder <mharder@microsoft.com> * File Share Features until STG82 (#3908) * Empty file or existing file won't be created/overwritten if the blob to be downloaded doesn't exist. (#3910) * Remove unnecessary checkout: none that causes conflicts with sparse checkout declarations (#3915) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Core September Release (#3913) Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com> * Increment package version after release of azure-core (#3919) * Migrate SkipDefaultCheckout to SkipCheckoutNone (#3916) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Storage Sept Release (#3914) * Increment version for storage releases (#3924) * Increment package version after release of azure-storage-common * Increment package version after release of azure-storage-blobs * Increment package version after release of azure-storage-files-shares * Add github actions based check enforcer (#3922) * Add `$schema` to `cgmanifest.json` (#3918) Co-authored-by: Jamie Magee <jamie.magee@microsoft.com> * Remove SkipDefaultCheckout parameter (#3930) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> * Compatibility improvement for striped blob (#3932) * add a parameter 'condition' to the test-proxy ci invocations. (#3931) Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> * storage ad-hoc release (#3934) * Increment package version after release of azure-storage-blobs (#3935) Co-authored-by: George Arama <50641385+gearama@users.noreply.github.com> Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Co-authored-by: sima-zhu <sizhu@microsoft.com> Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com> Co-authored-by: Mike Harder <mharder@microsoft.com> Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> Co-authored-by: Daniel Jurek <djurek@microsoft.com> Co-authored-by: Heath Stewart <heaths@microsoft.com> Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> Co-authored-by: praveenkuttappan <prmarott@microsoft.com> Co-authored-by: Ben Broderick Phillips <ben@benbp.net> Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com> Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> Co-authored-by: Rick Winter <rick.winter@microsoft.com> Co-authored-by: John Heffner <john@topofcenter.net> Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com> Co-authored-by: JinmingHu <jinmhu@microsoft.com> Co-authored-by: Jonathan Cárdenas <JonathanCrd@users.noreply.github.com> Co-authored-by: keshen-msft <53491277+keshen-msft@users.noreply.github.com> Co-authored-by: microzchang <110015819+microzchang@users.noreply.github.com> Co-authored-by: Jamie Magee <jamie.magee@gmail.com> Co-authored-by: Jamie Magee <jamie.magee@microsoft.com>
93 lines
4.8 KiB
CMake
93 lines
4.8 KiB
CMake
macro(GetFolderList project)
|
|
message ("project found ${project}")
|
|
message ("FLAG VALUE : ${FETCH_SOURCE_DEPS}")
|
|
if(${project} STREQUAL CERTIFICATES)
|
|
DownloadDepVersion(sdk/core azure-core 1.5.0)
|
|
DownloadDepVersion(sdk/identity azure-identity 1.1.0)
|
|
elseif(${project} STREQUAL IDENTITY)
|
|
DownloadDepVersion(sdk/core azure-core 1.2.0)
|
|
elseif(${project} STREQUAL SECRETS)
|
|
DownloadDepVersion(sdk/core azure-core 1.5.0)
|
|
DownloadDepVersion(sdk/identity azure-identity 1.1.0)
|
|
elseif(${project} STREQUAL KEYS)
|
|
DownloadDepVersion(sdk/core azure-core 1.5.0)
|
|
DownloadDepVersion(sdk/identity azure-identity 1.1.0)
|
|
elseif(${project} STREQUAL STORAGE_COMMON)
|
|
DownloadDepVersion(sdk/core azure-core 1.7.1)
|
|
elseif(${project} STREQUAL STORAGE_BLOBS)
|
|
DownloadDepVersion(sdk/core azure-core 1.7.1)
|
|
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.3.0)
|
|
elseif(${project} STREQUAL STORAGE_FILES_DATALAKE)
|
|
DownloadDepVersion(sdk/core azure-core 1.3.1)
|
|
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.2.2)
|
|
DownloadDepVersion(sdk/storage/azure-storage-blobs azure-storage-blobs 12.3.0)
|
|
elseif(${project} STREQUAL STORAGE_FILES_SHARES)
|
|
DownloadDepVersion(sdk/core azure-core 1.7.1)
|
|
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.3.0)
|
|
elseif(${project} STREQUAL STORAGE_QUEUES)
|
|
DownloadDepVersion(sdk/core azure-core 1.5.0)
|
|
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.2.3)
|
|
endif()
|
|
list(REMOVE_DUPLICATES BUILD_FOLDERS)
|
|
endmacro()
|
|
|
|
macro(SetGlobalOptions)
|
|
option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" ON)
|
|
option(BUILD_TRANSPORT_CURL "Build an HTTP transport implementation with CURL" OFF)
|
|
option(BUILD_TRANSPORT_WINHTTP "Build an HTTP transport implementation with WIN HTTP" OFF)
|
|
option(BUILD_TRANSPORT_CUSTOM "Implementation for AzureSdkGetCustomHttpTransport function must be linked to the final application" OFF)
|
|
option(BUILD_TESTING "Build test cases" OFF)
|
|
option(BUILD_RTTI "Build libraries with run-time type information." ON)
|
|
option(BUILD_CODE_COVERAGE "Build gcov targets for HTML and XML reports. Requires debug build and BUILD_TESTING" OFF)
|
|
option(BUILD_DOCUMENTATION "Create HTML based API documentation (requires Doxygen)" OFF)
|
|
option(BUILD_SAMPLES "Build sample application for Azure Storage clients" OFF)
|
|
option(RUN_LONG_UNIT_TESTS "Tests that takes more than 5 minutes to complete. No effect if BUILD_TESTING is OFF" OFF)
|
|
option(BUILD_PERFORMANCE_TESTS "Build the performance test library" OFF)
|
|
option(MSVC_USE_STATIC_CRT "(MSVC only) Set to ON to link SDK with static CRT (/MT or /MTd switch)." OFF)
|
|
option(FETCH_SOURCE_DEPS "fetch source dependencies for a package, not for global use, instead use when building specific component" OFF)
|
|
endmacro()
|
|
|
|
macro(SetCompileOptions project)
|
|
message ("setting up compile options for ${project}")
|
|
# Compile Options
|
|
SetGlobalOptions()
|
|
endmacro()
|
|
|
|
macro(DownloadDepVersion DEP_FOLDER DEP_NAME DEP_VERSION)
|
|
|
|
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/build/${DEP_FOLDER})
|
|
set(DOWNLOAD_FOLDER ${CMAKE_SOURCE_DIR}/build/downloads)
|
|
set(DOWNLOAD_FILE ${DEP_NAME}_${DEP_VERSION}.zip)
|
|
set(DEP_PREFIX azure-sdk-for-cpp)
|
|
|
|
if(FETCH_SOURCE_DEPS STREQUAL "LATEST")
|
|
message("Downloading latest version of ${DEP_NAME}")
|
|
#get the latest version from main
|
|
file(DOWNLOAD http://github.com/Azure/azure-sdk-for-cpp/archive/main.zip ${DOWNLOAD_FOLDER}/${DOWNLOAD_FILE})
|
|
else()
|
|
message("Downloading version ${DEP_VERSION} of ${DEP_NAME}")
|
|
# get the zip
|
|
file(DOWNLOAD https://github.com/Azure/azure-sdk-for-cpp/archive/refs/tags/${DOWNLOAD_FILE} ${DOWNLOAD_FOLDER}/${DOWNLOAD_FILE})
|
|
endif()
|
|
|
|
#extract the zip
|
|
file(ARCHIVE_EXTRACT INPUT ${DOWNLOAD_FOLDER}/${DOWNLOAD_FILE} DESTINATION ${DOWNLOAD_FOLDER}/${DEP_NAME})
|
|
#make target folder
|
|
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/build/${DEP_FOLDER})
|
|
|
|
# need a nicer way to copy/move folder
|
|
# i need to archive the folder then extract at new location
|
|
if(FETCH_SOURCE_DEPS STREQUAL "LATEST")
|
|
execute_process(COMMAND tar -cf ${DOWNLOAD_FOLDER}/${DEP_NAME}.tar -C ${DOWNLOAD_FOLDER}/${DEP_NAME}/azure-sdk-for-cpp-main/${DEP_FOLDER} .)
|
|
else()
|
|
execute_process(COMMAND tar -cf ${DOWNLOAD_FOLDER}/${DEP_NAME}.tar -C ${DOWNLOAD_FOLDER}/${DEP_NAME}/${DEP_PREFIX}-${DEP_NAME}_${DEP_VERSION}/${DEP_FOLDER} .)
|
|
endif()
|
|
|
|
file(ARCHIVE_EXTRACT INPUT ${DOWNLOAD_FOLDER}/${DEP_NAME}.tar DESTINATION ${CMAKE_SOURCE_DIR}/build/${DEP_FOLDER})
|
|
#cleanup
|
|
file(REMOVE_RECURSE ${DOWNLOAD_FOLDER})
|
|
#add dependency folder to build list
|
|
list(APPEND BUILD_FOLDERS build/${DEP_FOLDER})
|
|
|
|
endmacro()
|