trigger:
- master

stages:
- stage: format
  displayName: 'format'
  jobs:
  - job: format
    displayName: 'clang'
    pool:
      vmImage: ubuntu-latest
    steps:
    - template: ./templates/format-check.yml
- stage: build
  dependsOn: format
  displayName: 'build'
  jobs:
  - template: ./templates/build-standard.yml
    parameters:
      cache: 'true'
- stage: release
  displayName: 'Release'
  dependsOn: build
  jobs:
  - job: github
    displayName: 'GitHub Release'
    steps:
    - template: ./templates/release-github.yml