azure-sdk-for-cpp/eng/pipelines/templates/steps/cmake-generate.yml
Victor Vazquez 835f156af9
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>
2022-03-24 09:11:30 -07:00

29 lines
820 B
YAML

parameters:
CmakeGeneratePath: ''
Env: ''
GenerateArgs: ''
steps:
- script: mkdir build
workingDirectory: ${{ parameters.CmakeGeneratePath }}
displayName: create working directory
- pwsh: Write-Host "ENVs - ${{ parameters.Env }} "
workingDirectory: ${{ parameters.CmakeGeneratePath }}/build
displayName: ENVs
- script: pwd
workingDirectory: ${{ parameters.CmakeGeneratePath }}/build
displayName: Show current path
- script: |
${{ parameters.Env }} cmake ${{ parameters.GenerateArgs }} ..
workingDirectory: ${{ parameters.CmakeGeneratePath }}/build
displayName: cmake generate
env:
VCPKG_BINARY_SOURCES: $(VCPKG_BINARY_SOURCES_SECRET)
- script: rm -rf build
workingDirectory: ${{ parameters.CmakeGeneratePath }}
displayName: clean build folder