74 строки
2.0 KiB
YAML
74 строки
2.0 KiB
YAML
# Branches that trigger a build on commit
|
|
trigger:
|
|
- main
|
|
|
|
# Branches that trigger builds on PR
|
|
pr:
|
|
branches:
|
|
include:
|
|
- main
|
|
paths:
|
|
exclude:
|
|
- src/GitHubCreateMergePRs/config.xml
|
|
|
|
jobs:
|
|
- job: Windows
|
|
pool:
|
|
vmImage: windows-2019
|
|
strategy:
|
|
maxParallel: 2
|
|
matrix:
|
|
debug:
|
|
_configuration: Debug
|
|
release:
|
|
_configuration: Release
|
|
steps:
|
|
- script: .\eng\common\CIBuild.cmd -configuration $(_configuration) -prepareMachine /p:DotnetPublishUsingPipelines=true
|
|
|
|
- task: PublishTestResults@2
|
|
displayName: Publish xUnit Test Results
|
|
inputs:
|
|
testRunner: XUnit
|
|
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
|
|
mergeTestResults: true
|
|
testRunTitle: 'Test Windows $(_configuration)'
|
|
condition: always()
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: Publish Logs
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)/artifacts/log/$(_configuration)'
|
|
artifactName: 'Windows $(_configuration) Logs - $(System.JobAttempt)'
|
|
continueOnError: true
|
|
condition: not(succeeded())
|
|
|
|
- job: Linux
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
strategy:
|
|
maxParallel: 2
|
|
matrix:
|
|
debug:
|
|
_configuration: Debug
|
|
release:
|
|
_configuration: Release
|
|
steps:
|
|
- script: ./eng/common/cibuild.sh --configuration $(_configuration) --prepareMachine /p:DotnetPublishUsingPipelines=true
|
|
|
|
- task: PublishTestResults@2
|
|
displayName: Publish xUnit Test Results
|
|
inputs:
|
|
testRunner: XUnit
|
|
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_configuration)/*.xml'
|
|
mergeTestResults: true
|
|
testRunTitle: 'Test Linux $(_configuration)'
|
|
condition: always()
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: Publish Logs
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)/artifacts/log/$(_configuration)'
|
|
artifactName: 'Linux $(_configuration) Logs - $(System.JobAttempt)'
|
|
continueOnError: true
|
|
condition: not(succeeded())
|