mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[ci] Move formatting and doc checks into x86-windows (#20402)
* [ci] Move formatting and doc checks into x86-windows to avoid burning a whole job for that 1 run, don't run file lists generation in PRs. * Deduplicate x86-windows and restore PR file lists, as requested/suggested by @dg0yt * More quotes Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
This commit is contained in:
parent
d9a354273f
commit
09980780d8
@ -6,92 +6,53 @@ variables:
|
|||||||
linux-pool: 'PrLin-2021-09-08'
|
linux-pool: 'PrLin-2021-09-08'
|
||||||
osx-pool: 'PrOsx-2021-07-27'
|
osx-pool: 'PrOsx-2021-07-27'
|
||||||
|
|
||||||
stages:
|
jobs:
|
||||||
- stage: FormatChecks
|
- template: windows/azure-pipelines.yml
|
||||||
displayName: 'Formatting and Documentation Checks'
|
parameters:
|
||||||
pool: $(windows-pool)
|
triplet: x86-windows
|
||||||
jobs:
|
jobName: x86_windows
|
||||||
- job:
|
poolName: $(windows-pool)
|
||||||
workspace:
|
|
||||||
clean: resources
|
|
||||||
variables:
|
|
||||||
- name: VCPKG_DOWNLOADS
|
|
||||||
value: D:\downloads
|
|
||||||
- name: DiffFile
|
|
||||||
value: $(Build.ArtifactStagingDirectory)\format.diff
|
|
||||||
steps:
|
|
||||||
- task: Powershell@2
|
|
||||||
displayName: 'Generate Documentation'
|
|
||||||
inputs:
|
|
||||||
filePath: 'docs/regenerate.ps1'
|
|
||||||
arguments: '-VcpkgRoot . -WarningAction Stop'
|
|
||||||
pwsh: true
|
|
||||||
- script: .\bootstrap-vcpkg.bat
|
|
||||||
displayName: 'Bootstrap vcpkg'
|
|
||||||
- script: '.\vcpkg.exe format-manifest --all'
|
|
||||||
displayName: 'Format Manifests'
|
|
||||||
- task: Powershell@2
|
|
||||||
displayName: 'Create Diff'
|
|
||||||
inputs:
|
|
||||||
filePath: scripts/azure-pipelines/Create-PRDiff.ps1
|
|
||||||
arguments: '-DiffFile $(DiffFile)'
|
|
||||||
pwsh: true
|
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
condition: failed()
|
|
||||||
displayName: 'Publish Format and Documentation Diff'
|
|
||||||
inputs:
|
|
||||||
PathtoPublish: '$(DiffFile)'
|
|
||||||
ArtifactName: 'format.diff'
|
|
||||||
- stage: RunPrTests
|
|
||||||
displayName: 'Run PR Tests:'
|
|
||||||
dependsOn: FormatChecks
|
|
||||||
jobs:
|
|
||||||
- template: windows/azure-pipelines.yml
|
|
||||||
parameters:
|
|
||||||
triplet: x86-windows
|
|
||||||
jobName: x86_windows
|
|
||||||
poolName: $(windows-pool)
|
|
||||||
|
|
||||||
- template: windows/azure-pipelines.yml
|
- template: windows/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
triplet: x64-windows
|
triplet: x64-windows
|
||||||
jobName: x64_windows
|
jobName: x64_windows
|
||||||
poolName: $(windows-pool)
|
poolName: $(windows-pool)
|
||||||
|
|
||||||
- template: windows/azure-pipelines.yml
|
- template: windows/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
triplet: x64-windows-static
|
triplet: x64-windows-static
|
||||||
jobName: x64_windows_static
|
jobName: x64_windows_static
|
||||||
poolName: $(windows-pool)
|
poolName: $(windows-pool)
|
||||||
|
|
||||||
- template: windows/azure-pipelines.yml
|
- template: windows/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
triplet: x64-windows-static-md
|
triplet: x64-windows-static-md
|
||||||
jobName: x64_windows_static_md
|
jobName: x64_windows_static_md
|
||||||
poolName: $(windows-pool)
|
poolName: $(windows-pool)
|
||||||
|
|
||||||
- template: windows/azure-pipelines.yml
|
- template: windows/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
triplet: x64-uwp
|
triplet: x64-uwp
|
||||||
jobName: x64_uwp
|
jobName: x64_uwp
|
||||||
poolName: $(windows-pool)
|
poolName: $(windows-pool)
|
||||||
|
|
||||||
- template: windows/azure-pipelines.yml
|
- template: windows/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
triplet: arm64-windows
|
triplet: arm64-windows
|
||||||
jobName: arm64_windows
|
jobName: arm64_windows
|
||||||
poolName: $(windows-pool)
|
poolName: $(windows-pool)
|
||||||
|
|
||||||
- template: windows/azure-pipelines.yml
|
- template: windows/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
triplet: arm-uwp
|
triplet: arm-uwp
|
||||||
jobName: arm_uwp
|
jobName: arm_uwp
|
||||||
poolName: $(windows-pool)
|
poolName: $(windows-pool)
|
||||||
|
|
||||||
- template: osx/azure-pipelines.yml
|
- template: osx/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
poolName: $(osx-pool)
|
poolName: $(osx-pool)
|
||||||
|
|
||||||
- template: linux/azure-pipelines.yml
|
- template: linux/azure-pipelines.yml
|
||||||
parameters:
|
parameters:
|
||||||
poolName: $(linux-pool)
|
poolName: $(linux-pool)
|
||||||
|
@ -14,6 +14,10 @@ jobs:
|
|||||||
value: D:\
|
value: D:\
|
||||||
- name: VCPKG_DOWNLOADS
|
- name: VCPKG_DOWNLOADS
|
||||||
value: D:\downloads
|
value: D:\downloads
|
||||||
|
- name: DiffFile
|
||||||
|
value: $(Build.ArtifactStagingDirectory)\format.diff
|
||||||
|
- name: ExtraChecksTriplet
|
||||||
|
value: x86-windows
|
||||||
- group: vcpkg-asset-caching-credentials
|
- group: vcpkg-asset-caching-credentials
|
||||||
- name: X_VCPKG_ASSET_SOURCES
|
- name: X_VCPKG_ASSET_SOURCES
|
||||||
value: "x-azurl,$(root-url),$(sas),readwrite"
|
value: "x-azurl,$(root-url),$(sas),readwrite"
|
||||||
@ -28,12 +32,35 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'
|
filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'
|
||||||
pwsh: true
|
pwsh: true
|
||||||
# Note: E: is the Azure machines' temporary disk.
|
|
||||||
- script: .\bootstrap-vcpkg.bat
|
- script: .\bootstrap-vcpkg.bat
|
||||||
displayName: 'Bootstrap vcpkg'
|
displayName: 'Bootstrap vcpkg'
|
||||||
- script: |
|
- script: |
|
||||||
if exist ${{ variables.VCPKG_DOWNLOADS }} rmdir /S /Q ${{ variables.VCPKG_DOWNLOADS }} 2>&1
|
if exist ${{ variables.VCPKG_DOWNLOADS }} rmdir /S /Q ${{ variables.VCPKG_DOWNLOADS }} 2>&1
|
||||||
displayName: 'Clean downloads'
|
displayName: 'Clean downloads'
|
||||||
|
# Note that we run docs checks before PR checks because they are likely to invalidate a whole run anyway
|
||||||
|
- task: Powershell@2
|
||||||
|
displayName: 'Generate Documentation'
|
||||||
|
condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
|
||||||
|
inputs:
|
||||||
|
filePath: 'docs/regenerate.ps1'
|
||||||
|
arguments: '-VcpkgRoot . -WarningAction Stop'
|
||||||
|
pwsh: true
|
||||||
|
- script: '.\vcpkg.exe format-manifest --all'
|
||||||
|
displayName: 'Format Manifests'
|
||||||
|
condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
|
||||||
|
- task: Powershell@2
|
||||||
|
displayName: 'Create Diff'
|
||||||
|
condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
|
||||||
|
inputs:
|
||||||
|
filePath: scripts/azure-pipelines/Create-PRDiff.ps1
|
||||||
|
arguments: "-DiffFile '$(DiffFile)'"
|
||||||
|
pwsh: true
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
displayName: 'Publish Format and Documentation Diff'
|
||||||
|
condition: and(eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}'), failed())
|
||||||
|
inputs:
|
||||||
|
PathtoPublish: '$(DiffFile)'
|
||||||
|
ArtifactName: 'format.diff'
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
||||||
inputs:
|
inputs:
|
||||||
@ -43,7 +70,7 @@ jobs:
|
|||||||
pwsh: true
|
pwsh: true
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Validate version files'
|
displayName: 'Validate version files'
|
||||||
condition: eq('${{ parameters.triplet }}', 'x86-windows')
|
condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
|
||||||
inputs:
|
inputs:
|
||||||
targetType: inline
|
targetType: inline
|
||||||
script: |
|
script: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user