]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # Copyright (c) Microsoft Corporation.\r |
2 | # SPDX-License-Identifier: MIT\r | |
3 | #\r | |
4 | \r | |
5 | jobs:\r | |
6 | - job: ${{ parameters.jobName }}\r | |
7 | pool:\r | |
8 | name: ${{ parameters.poolName }}\r | |
9 | workspace:\r | |
10 | clean: resources\r | |
11 | timeoutInMinutes: 1440 # 1 day\r | |
12 | variables:\r | |
13 | - name: WORKING_ROOT\r | |
14 | value: D:\\r | |
15 | - name: VCPKG_DOWNLOADS\r | |
16 | value: D:\downloads\r | |
17 | \r | |
18 | steps:\r | |
19 | - task: PowerShell@2\r | |
20 | displayName: 'Report on Disk Space'\r | |
21 | condition: always()\r | |
22 | inputs:\r | |
23 | filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'\r | |
24 | pwsh: true\r | |
25 | # Note: D: is the Azure machines' temporary disk.\r | |
26 | - script: .\bootstrap-vcpkg.bat\r | |
27 | displayName: 'Bootstrap vcpkg'\r | |
28 | - task: PowerShell@2\r | |
29 | displayName: '*** Test Modified Ports and Prepare Test Logs ***'\r | |
30 | inputs:\r | |
31 | failOnStderr: true\r | |
32 | filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'\r | |
33 | arguments: '-Triplet ${{ parameters.triplet }} -BuildReason $(Build.Reason) -UseEnvironmentSasToken -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory)'\r | |
34 | pwsh: true\r | |
35 | - task: PowerShell@2\r | |
36 | displayName: 'Validate version files'\r | |
37 | condition: eq('${{ parameters.triplet }}', 'x86-windows')\r | |
38 | inputs:\r | |
39 | targetType: inline\r | |
40 | script: |\r | |
41 | ./vcpkg.exe --feature-flags=versions x-ci-verify-versions --verbose\r | |
42 | pwsh: true\r | |
43 | - task: PowerShell@2\r | |
44 | displayName: 'Report on Disk Space After Build'\r | |
45 | condition: always()\r | |
46 | inputs:\r | |
47 | filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'\r | |
48 | pwsh: true\r | |
49 | - task: PublishBuildArtifacts@1\r | |
50 | displayName: 'Publish Artifact: failure logs for ${{ parameters.triplet }}'\r | |
51 | inputs:\r | |
52 | PathtoPublish: '$(Build.ArtifactStagingDirectory)\failure-logs'\r | |
53 | ArtifactName: 'failure logs for ${{ parameters.triplet }}'\r | |
54 | condition: always()\r | |
55 | - task: PowerShell@2\r | |
56 | displayName: 'Build a file list for all packages'\r | |
57 | condition: always()\r | |
58 | inputs:\r | |
59 | targetType: inline\r | |
60 | script: |\r | |
61 | ./vcpkg.exe fetch python3\r | |
62 | & $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\\r | |
63 | pwsh: true\r | |
64 | - task: PublishBuildArtifacts@1\r | |
65 | displayName: 'Publish Artifact: file lists for ${{ parameters.triplet }}'\r | |
66 | condition: always()\r | |
67 | inputs:\r | |
68 | PathtoPublish: scripts/list_files\r | |
69 | ArtifactName: 'file lists for ${{ parameters.triplet }}'\r |