• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1jobs:
2- job: Make_Nuget_Layout
3  displayName: Make Nuget layout
4  condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
5
6  pool:
7    vmImage: windows-2019
8
9  workspace:
10    clean: all
11
12  strategy:
13    matrix:
14      win32:
15        Name: win32
16        Python: $(Build.BinariesDirectory)\bin\python.exe
17        PYTHONHOME: $(Build.SourcesDirectory)
18      amd64:
19        Name: amd64
20        Python: $(Build.BinariesDirectory)\bin\python.exe
21        PYTHONHOME: $(Build.SourcesDirectory)
22      arm64:
23        Name: arm64
24        HostArch: amd64
25        Python: $(Build.BinariesDirectory)\bin_amd64\python.exe
26        PYTHONHOME: $(Build.SourcesDirectory)
27
28  steps:
29  - template: ./checkout.yml
30
31  - task: DownloadPipelineArtifact@1
32    displayName: 'Download artifact: bin_$(Name)'
33    inputs:
34      artifactName: bin_$(Name)
35      targetPath: $(Build.BinariesDirectory)\bin
36
37  - powershell: |
38      copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
39    displayName: 'Copy signed files into sources'
40    condition: and(succeeded(), variables['SigningCertificate'])
41
42  - template: ./layout-command.yml
43
44  - powershell: |
45      $(LayoutCmd) --copy "$(Build.ArtifactStagingDirectory)\nuget" --preset-nuget
46    displayName: 'Generate nuget layout'
47
48  - task: PublishPipelineArtifact@0
49    displayName: 'Publish Artifact: layout_nuget_$(Name)'
50    inputs:
51      targetPath: '$(Build.ArtifactStagingDirectory)\nuget'
52      artifactName: layout_nuget_$(Name)
53