-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathstage-layout-nuget.yml
More file actions
80 lines (70 loc) · 2.15 KB
/
stage-layout-nuget.yml
File metadata and controls
80 lines (70 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
parameters:
BuildToPackage: current
DoFreethreaded: false
SigningCertificate: ''
jobs:
- job: Make_Nuget_Layout
displayName: Make Nuget layout
workspace:
clean: all
variables:
PYTHONHOME: $(Build.SourcesDirectory)
strategy:
matrix:
win32:
Name: win32
Arch: win32
ExtraOptions: ''
amd64:
Name: amd64
Arch: amd64
ExtraOptions: ''
arm64:
Name: arm64
Arch: arm64
HostArch: amd64
ExtraOptions: ''
${{ if eq(parameters.DoFreethreaded, 'true') }}:
win32_t:
Name: win32_t
Arch: win32
HostArch: win32
ExtraOptions: --include-freethreaded
amd64_t:
Name: amd64_t
Arch: amd64
HostArch: amd64
ExtraOptions: --include-freethreaded
arm64_t:
Name: arm64_t
Arch: arm64
HostArch: amd64
ExtraOptions: --include-freethreaded
steps:
- template: ./checkout.yml
- task: DownloadPipelineArtifact@2
displayName: 'Download artifact: bin_$(Name)'
inputs:
${{ if eq(parameters.BuildToPackage, 'current') }}:
buildType: current
${{ else }}:
buildType: specific
buildVersionToDownload: specific
project: $(resources.pipeline.build_to_package.projectId)
pipeline: $(resources.pipeline.build_to_package.pipelineId)
runId: $(resources.pipeline.build_to_package.runID)
artifact: bin_$(Name)
targetPath: $(Pipeline.Workspace)\bin_$(Name)
- ${{ if parameters.SigningCertificate }}:
- powershell: |
copy $(Pipeline.Workspace)\bin_$(Name)\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
displayName: 'Copy signed files into sources'
- template: ./layout-command.yml
parameters:
BuildToPackage: ${{ parameters.BuildToPackage }}
- powershell: |
$(LayoutCmd) --copy "$(Build.ArtifactStagingDirectory)\nuget" --preset-nuget $(ExtraOptions)
displayName: 'Generate nuget layout'
- publish: '$(Build.ArtifactStagingDirectory)\nuget'
artifact: layout_nuget_$(Name)
displayName: 'Publish Artifact: layout_nuget_$(Name)'