2019-09-26 15:42:18 +02:00
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
2019-10-05 06:09:11 +02:00
|
|
|
variables:
|
|
|
|
DisplayVersion: $[counter(variables['DisplayPrefix'], 1)]
|
|
|
|
|
2019-09-26 15:42:18 +02:00
|
|
|
stages:
|
|
|
|
- stage: format
|
|
|
|
displayName: 'format'
|
|
|
|
jobs:
|
|
|
|
- job: format
|
|
|
|
displayName: 'clang'
|
2019-11-25 03:31:37 +01:00
|
|
|
continueOnError: true
|
2019-09-26 15:42:18 +02:00
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- template: ./templates/format-check.yml
|
|
|
|
- stage: build
|
|
|
|
dependsOn: format
|
|
|
|
displayName: 'build'
|
|
|
|
jobs:
|
2019-10-03 00:23:05 +02:00
|
|
|
- job: build
|
|
|
|
displayName: 'windows-msvc'
|
|
|
|
pool:
|
2020-04-04 22:13:57 +02:00
|
|
|
vmImage: windows-2019
|
2019-09-26 15:42:18 +02:00
|
|
|
steps:
|
2019-10-03 00:23:05 +02:00
|
|
|
- template: ./templates/sync-source.yml
|
|
|
|
parameters:
|
|
|
|
artifactSource: $(parameters.artifactSource)
|
|
|
|
needSubmodules: 'true'
|
|
|
|
- template: ./templates/build-msvc.yml
|
|
|
|
parameters:
|
|
|
|
artifactSource: 'false'
|
|
|
|
cache: $(parameters.cache)
|
2019-10-05 06:09:11 +02:00
|
|
|
version: $(DisplayVersion)
|
2019-10-09 01:52:02 +02:00
|
|
|
- stage: release
|
|
|
|
displayName: 'release'
|
|
|
|
dependsOn: build
|
|
|
|
jobs:
|
|
|
|
- job: release
|
|
|
|
displayName: 'source'
|
|
|
|
steps:
|
|
|
|
- template: ./templates/release-private-tag.yml
|