2020-04-22 08:12:21 +08:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
variables:
|
2021-07-11 07:47:55 +08:00
|
|
|
windows-pool: 'PrWin-2021-07-09'
|
2021-07-15 03:46:05 +08:00
|
|
|
linux-pool: 'PrLin-2021-07-13'
|
2021-04-29 22:39:04 +08:00
|
|
|
osx-pool: 'PrOsx-2021-04-16'
|
2020-06-12 02:13:09 +08:00
|
|
|
|
2020-07-08 05:09:33 +08:00
|
|
|
stages:
|
2020-12-17 05:14:35 +08:00
|
|
|
- stage: FormatChecks
|
|
|
|
displayName: 'Formatting and Documentation Checks'
|
2020-07-08 05:09:33 +08:00
|
|
|
pool: $(windows-pool)
|
|
|
|
jobs:
|
|
|
|
- job:
|
2020-07-10 03:32:31 +08:00
|
|
|
workspace:
|
|
|
|
clean: resources
|
2020-12-17 05:14:35 +08:00
|
|
|
variables:
|
|
|
|
- name: VCPKG_DOWNLOADS
|
|
|
|
value: D:\downloads
|
|
|
|
- name: DiffFile
|
|
|
|
value: $(Build.ArtifactStagingDirectory)\format.diff
|
2020-07-08 05:09:33 +08:00
|
|
|
steps:
|
|
|
|
- task: Powershell@2
|
2020-12-17 05:14:35 +08:00
|
|
|
displayName: 'Generate Documentation'
|
2020-07-08 05:09:33 +08:00
|
|
|
inputs:
|
2020-12-17 05:14:35 +08:00
|
|
|
filePath: 'docs/regenerate.ps1'
|
|
|
|
arguments: '-VcpkgRoot . -WarningAction Stop'
|
2020-08-28 03:27:39 +08:00
|
|
|
pwsh: true
|
2020-12-17 05:14:35 +08:00
|
|
|
- script: .\bootstrap-vcpkg.bat
|
2021-02-05 02:15:44 +08:00
|
|
|
displayName: 'Bootstrap vcpkg'
|
|
|
|
- script: '.\vcpkg.exe format-manifest --all'
|
2020-12-17 05:14:35 +08:00
|
|
|
displayName: 'Format Manifests'
|
2020-12-02 05:37:26 +08:00
|
|
|
- task: Powershell@2
|
2020-12-17 05:14:35 +08:00
|
|
|
displayName: 'Create Diff'
|
2020-12-02 05:37:26 +08:00
|
|
|
inputs:
|
2021-02-05 02:15:44 +08:00
|
|
|
filePath: scripts/azure-pipelines/Create-PRDiff.ps1
|
2020-12-17 05:14:35 +08:00
|
|
|
arguments: '-DiffFile $(DiffFile)'
|
2020-12-02 05:37:26 +08:00
|
|
|
pwsh: true
|
2020-12-17 05:14:35 +08:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: failed()
|
2021-02-05 02:15:44 +08:00
|
|
|
displayName: 'Publish Format and Documentation Diff'
|
2020-12-17 05:14:35 +08:00
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(DiffFile)'
|
|
|
|
ArtifactName: 'format.diff'
|
|
|
|
- stage: RunPrTests
|
|
|
|
displayName: 'Run PR Tests:'
|
|
|
|
dependsOn: FormatChecks
|
2020-07-08 05:09:33 +08:00
|
|
|
jobs:
|
2020-06-26 13:19:17 +08:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x86-windows
|
|
|
|
jobName: x86_windows
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-windows
|
|
|
|
jobName: x64_windows
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-windows-static
|
|
|
|
jobName: x64_windows_static
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
2021-01-09 03:55:31 +08:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-windows-static-md
|
|
|
|
jobName: x64_windows_static_md
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
2020-06-26 13:19:17 +08:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-uwp
|
|
|
|
jobName: x64_uwp
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: arm64-windows
|
|
|
|
jobName: arm64_windows
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: arm-uwp
|
|
|
|
jobName: arm_uwp
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: osx/azure-pipelines.yml
|
2020-09-25 06:15:06 +08:00
|
|
|
parameters:
|
|
|
|
poolName: $(osx-pool)
|
2020-06-26 13:19:17 +08:00
|
|
|
|
|
|
|
- template: linux/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
poolName: $(linux-pool)
|