-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathstage-layout-full.yml
More file actions
146 lines (131 loc) · 4.6 KB
/
stage-layout-full.yml
File metadata and controls
146 lines (131 loc) · 4.6 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
parameters:
BuildToPackage: current
DoFreethreaded: false
SigningCertificate: ''
jobs:
- job: Make_Layouts
displayName: Make layouts
workspace:
clean: all
variables:
PYTHONHOME: $(Build.SourcesDirectory)
strategy:
matrix:
win32:
Name: win32
DebugName: win32_d
Arch: win32
TclLibrary: tcltk_lib_win32
ExtraOptions: ''
amd64:
Name: amd64
DebugName: amd64_d
Arch: amd64
TclLibrary: tcltk_lib_amd64
ExtraOptions: ''
arm64:
Name: arm64
DebugName: arm64_d
Arch: arm64
HostArch: amd64
TclLibrary: tcltk_lib_arm64
ExtraOptions: ''
${{ if eq(parameters.DoFreethreaded, 'true') }}:
win32_t:
Name: win32_t
DebugName: win32_td
Arch: win32
HostArch: win32
TclLibrary: tcltk_lib_win32
ExtraOptions: --include-freethreaded
amd64_t:
Name: amd64_t
DebugName: amd64_td
Arch: amd64
HostArch: amd64
TclLibrary: tcltk_lib_amd64
ExtraOptions: --include-freethreaded
arm64_t:
Name: arm64_t
DebugName: arm64_td
Arch: arm64
HostArch: amd64
TclLibrary: tcltk_lib_arm64
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)
- task: DownloadPipelineArtifact@2
displayName: 'Download artifact: bin_$(DebugName)'
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_$(DebugName)
targetPath: $(Pipeline.Workspace)\bin_$(DebugName)
- powershell: |
$dest = "$(Pipeline.Workspace)\bin_$(Name)"
dir "$(Pipeline.Workspace)\bin_$(DebugName)" | `
?{ -not (Test-Path "$dest\$($_.Name)") } | `
%{ copy $_.FullName $dest }
displayName: 'Copy debug binaries'
- task: DownloadPipelineArtifact@2
displayName: 'Download artifact: doc'
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: doc
targetPath: $(Pipeline.Workspace)\doc
- task: DownloadPipelineArtifact@2
displayName: 'Download artifact: $(TclLibrary)'
condition: and(succeeded(), variables['TclLibrary'])
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: $(TclLibrary)
targetPath: $(Pipeline.Workspace)\$(TclLibrary)
- powershell: |
Write-Host "##vso[task.setvariable variable=TCL_LIBRARY]$(Pipeline.Workspace)\$(TclLibrary)\tcl8"
displayName: 'Update TCL_LIBRARY'
condition: and(succeeded(), variables['TclLibrary'])
- powershell: |
copy "$(Pipeline.Workspace)\bin_$(Name)\Activate.ps1" Lib\venv\scripts\common\Activate.ps1 -Force -Verbose
displayName: 'Copy signed files into sources'
- template: ./layout-command.yml
parameters:
BuildToPackage: ${{ parameters.BuildToPackage }}
- powershell: |
$(LayoutCmd) --copy "$(Build.ArtifactStagingDirectory)\layout" --preset-default $(ExtraOptions)
displayName: 'Generate full layout'
- publish: '$(Build.ArtifactStagingDirectory)\layout'
artifact: layout_full_$(Name)
displayName: 'Publish Artifact: layout_full_$(Name)'