azure-sdk-for-cpp/eng/pipelines/templates/steps/cmake-build.yml
Larry Osterman bb95a22e3f
Added the ability to select OpenSSL 1.1.1n if desired. (#4045)
* Added ability to switch to OpenSSL 1.1.1n

* Fixed OpenSSL compilation challenges - the CRL stuff works now

* Added instructions on using OpenSSL 1.1.1 to README

* Added vcpkg args to handle openssl variants
2022-10-28 15:57:51 -07:00

37 lines
1.1 KiB
YAML

parameters:
Env: ''
GenerateArgs: ''
Build: true
BuildArgs: ''
VcpkgArgs: ''
ServiceDirectory: ''
steps:
- script: mkdir build
displayName: create working directory
- script: cmake --version
workingDirectory: build
displayName: cmake --version
- script: |
${{ parameters.Env }} cmake ${{ parameters.VcpkgArgs }} ${{ parameters.GenerateArgs }} ..
workingDirectory: build
displayName: cmake generate
env:
VCPKG_BINARY_SOURCES: $(VCPKG_BINARY_SOURCES_SECRET)
# Core should build all cmake tagets
- ${{ if and(eq(parameters.Build, true), eq(parameters.ServiceDirectory, 'core')) }}:
- script: cmake --build . ${{ parameters.BuildArgs }}
workingDirectory: build
displayName: cmake build All
# Non-core services define the list of targets to build
- ${{ if and(eq(parameters.Build, true) , ne(parameters.ServiceDirectory, 'core')) }}:
- pwsh: cmake --build . ${{ parameters.BuildArgs }} --target (Get-Content ${{ parameters.ServiceDirectory }}-targets-build.txt)
workingDirectory: build
displayName: cmake build Targets