зеркало из https://github.com/Azure/c-logging.git
New deps and use build_all_flavors (#200)
* Update dependencies * Use build_all_flavors
This commit is contained in:
Родитель
f89c5c4837
Коммит
2d122da94a
|
@ -11,136 +11,9 @@ resources:
|
|||
ref: refs/heads/master
|
||||
|
||||
jobs:
|
||||
- job: windowsx64debug
|
||||
displayName: 'Build Windows x64 Debug'
|
||||
pool:
|
||||
name: Azure-MessagingStore-WinBuildPoolVS2022
|
||||
demands:
|
||||
- Cmd
|
||||
- msbuild
|
||||
- cmake
|
||||
- visualstudio
|
||||
- template: /pipeline_templates/build_all_flavors.yml@c_build_tools
|
||||
|
||||
steps:
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git submodule update'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'submodule update --init --force'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git submodule clean'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'submodule foreach --recursive "git clean -xdff"'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git clean'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'clean -xdff'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Setup VS Vars'
|
||||
inputs:
|
||||
filename: '"c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"'
|
||||
modifyEnvironment: true
|
||||
|
||||
- task: CMake@1
|
||||
displayName: 'CMake .. -Drun_reals_check:bool=ON -Drun_unittests:bool=ON -Drun_int_tests:bool=ON -Duse_cppunittest:bool=OFF -Duse_vld:bool=ON -G "Visual Studio 17 2022" -A x64'
|
||||
inputs:
|
||||
workingDirectory: 'build_x64'
|
||||
cmakeArgs: '.. -Drun_reals_check:bool=ON -Drun_unittests:bool=ON -Drun_int_tests:bool=ON -Duse_cppunittest:bool=OFF -Duse_vld:bool=ON -G "Visual Studio 17 2022" -A x64'
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build solution build_x64\*.sln'
|
||||
inputs:
|
||||
solution: 'build_x64\*.sln'
|
||||
msbuildArgs: '/t:restore /t:build'
|
||||
platform: x64
|
||||
configuration: Debug
|
||||
maximumCpuCount: true
|
||||
|
||||
- task: CmdLine@1
|
||||
displayName: 'Run ctest'
|
||||
inputs:
|
||||
filename: ctest
|
||||
arguments: '-C "Debug" -V --output-on-failure'
|
||||
workingFolder: 'build_x64'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish artifacts'
|
||||
inputs:
|
||||
pathtoPublish: 'build_x64'
|
||||
artifactName: 'x64_Debug'
|
||||
parallel: true
|
||||
condition: failed()
|
||||
|
||||
- job: windowsx64relwithdebinfo
|
||||
displayName: 'Build Windows x64 RelWithDebInfo'
|
||||
pool:
|
||||
name: Azure-MessagingStore-WinBuildPoolVS2022
|
||||
demands:
|
||||
- Cmd
|
||||
- msbuild
|
||||
- cmake
|
||||
- visualstudio
|
||||
- vstest
|
||||
|
||||
steps:
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git submodule update'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'submodule update --init --force'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git submodule clean'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'submodule foreach --recursive "git clean -xdff"'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git clean'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'clean -xdff'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Setup VS Vars'
|
||||
inputs:
|
||||
filename: '"c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"'
|
||||
modifyEnvironment: true
|
||||
|
||||
- task: CMake@1
|
||||
displayName: 'CMake .. -Drun_reals_check:bool=ON -Drun_unittests:bool=ON -Drun_int_tests:bool=ON -Duse_cppunittest:bool=ON -G "Visual Studio 17 2022" -A x64'
|
||||
inputs:
|
||||
workingDirectory: 'build_x64'
|
||||
cmakeArgs: '.. -Drun_reals_check:bool=ON -Drun_unittests:bool=ON -Drun_int_tests:bool=ON -Duse_cppunittest:bool=ON -G "Visual Studio 17 2022" -A x64'
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build solution build_x64\*.sln'
|
||||
inputs:
|
||||
solution: 'build_x64\*.sln'
|
||||
platform: x64
|
||||
msbuildArgs: '/t:restore /t:build'
|
||||
configuration: RelWithDebInfo
|
||||
maximumCpuCount: true
|
||||
|
||||
- task: CmdLine@1
|
||||
displayName: 'Run ctest'
|
||||
inputs:
|
||||
filename: ctest
|
||||
arguments: '-C "RelWithDebInfo" -V --output-on-failure'
|
||||
workingFolder: 'build_x64'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish artifacts'
|
||||
inputs:
|
||||
pathtoPublish: 'build_x64'
|
||||
artifactName: 'x64_RelWithDebInfo'
|
||||
parallel: true
|
||||
condition: failed()
|
||||
- template: /pipeline_templates/codeql3000_default.yml@c_build_tools
|
||||
|
||||
- job: windowsx64etwperf
|
||||
displayName: 'Run Windows x64 RelWithDebInfo ETW Perf tests'
|
||||
|
@ -207,74 +80,7 @@ jobs:
|
|||
artifactName: 'x64_RelWithDebInfo_perf'
|
||||
parallel: true
|
||||
condition: failed()
|
||||
|
||||
- job: windowsx86debug
|
||||
displayName: 'Build Windows x86 Debug'
|
||||
pool:
|
||||
name: Azure-MessagingStore-WinBuildPoolVS2022
|
||||
demands:
|
||||
- Cmd
|
||||
- msbuild
|
||||
- cmake
|
||||
- visualstudio
|
||||
|
||||
steps:
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git submodule update'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'submodule update --init --force'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git submodule clean'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'submodule foreach --recursive "git clean -xdff"'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Git clean'
|
||||
inputs:
|
||||
filename: 'C:\Program Files\Git\bin\git.exe'
|
||||
arguments: 'clean -xdff'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'Setup VS Vars'
|
||||
inputs:
|
||||
filename: '"c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"'
|
||||
modifyEnvironment: true
|
||||
|
||||
- task: CMake@1
|
||||
displayName: 'CMake .. -Drun_reals_check:bool=ON -Drun_unittests:bool=ON -Drun_int_tests:bool=ON -Drun_e2e_tests:bool=ON -G "Visual Studio 17 2022" -A Win32'
|
||||
inputs:
|
||||
workingDirectory: 'build_x86'
|
||||
cmakeArgs: '.. -Drun_reals_check:bool=ON -Drun_unittests:bool=ON -Drun_int_tests:bool=ON -Drun_e2e_tests:bool=ON -G "Visual Studio 17 2022" -A Win32'
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build solution build_x86\*.sln'
|
||||
inputs:
|
||||
solution: 'build_x86\*.sln'
|
||||
platform: Win32
|
||||
msbuildArgs: '/t:restore /t:build'
|
||||
configuration: Debug
|
||||
maximumCpuCount: true
|
||||
|
||||
- task: CmdLine@1
|
||||
displayName: 'Run ctest'
|
||||
inputs:
|
||||
filename: ctest
|
||||
arguments: '-C "Debug" -V --output-on-failure'
|
||||
workingFolder: 'build_x86'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish artifacts'
|
||||
inputs:
|
||||
pathtoPublish: 'build_x86'
|
||||
artifactName: 'x86_Debug'
|
||||
parallel: true
|
||||
condition: failed()
|
||||
|
||||
- template: /pipeline_templates/codeql3000_default.yml@c_build_tools
|
||||
|
||||
|
||||
- job: linuxubuntu
|
||||
displayName: 'Build Linux Ubuntu'
|
||||
pool:
|
||||
|
|
Загрузка…
Ссылка в новой задаче