2019-06-14 18:20:16 -03:00
|
|
|
jobs:
|
|
|
|
- job: Make_Embed_Layout
|
|
|
|
displayName: Make embeddable layout
|
|
|
|
condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmName: win2016-vs2017
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
win32:
|
|
|
|
Name: win32
|
2019-06-17 20:32:05 -03:00
|
|
|
Python: $(Build.BinariesDirectory)\bin\python.exe
|
2019-06-14 18:20:16 -03:00
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
amd64:
|
|
|
|
Name: amd64
|
2019-06-17 20:32:05 -03:00
|
|
|
Python: $(Build.BinariesDirectory)\bin\python.exe
|
2019-06-14 18:20:16 -03:00
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./checkout.yml
|
|
|
|
|
2019-06-17 20:32:05 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 18:20:16 -03:00
|
|
|
displayName: 'Download artifact: bin_$(Name)'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_$(Name)
|
2019-06-17 20:32:05 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\bin
|
2019-06-14 18:20:16 -03:00
|
|
|
|
|
|
|
- template: ./layout-command.yml
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
|
|
|
|
Write-Host "##vso[task.setvariable variable=VersionText]$($d.PythonVersion)"
|
|
|
|
displayName: 'Extract version numbers'
|
|
|
|
|
|
|
|
- powershell: >
|
|
|
|
$(LayoutCmd)
|
|
|
|
--copy "$(Build.ArtifactStagingDirectory)\layout"
|
|
|
|
--zip "$(Build.ArtifactStagingDirectory)\embed\python-$(VersionText)-embed-$(Name).zip"
|
|
|
|
--preset-embed
|
|
|
|
displayName: 'Generate embeddable layout'
|
|
|
|
|
2019-06-17 20:32:05 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 18:20:16 -03:00
|
|
|
displayName: 'Publish Artifact: layout_embed_$(Name)'
|
|
|
|
inputs:
|
2019-06-17 20:32:05 -03:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\layout'
|
|
|
|
artifactName: layout_embed_$(Name)
|
2019-06-14 18:20:16 -03:00
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifact: embed'
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)\embed'
|
|
|
|
ArtifactName: embed
|