Add artifact publishing to cmake-generate.yml

This commit is contained in:
Daniel Jurek 2023-07-07 15:01:25 -07:00
Родитель f772968f8e
Коммит 7672dc9c06
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -23,6 +23,13 @@ steps:
env:
VCPKG_BINARY_SOURCES: $(VCPKG_BINARY_SOURCES_SECRET)
- task: PublishPipelineArtifact@1
displayName: Publish build failure artifacts
condition: failed()
inputs:
targetPath: ${{ parameters.CmakeGeneratePath }}/build
artifact: build_failure_$(Agent.JobName)_$(System.JobAttempt)
- script: rm -rf build
workingDirectory: ${{ parameters.CmakeGeneratePath }}
displayName: clean build folder