mirror of https://github.com/python/cpython.git
158 lines
3.4 KiB
YAML
158 lines
3.4 KiB
YAML
|
jobs:
|
||
|
- job: Build_Docs
|
||
|
displayName: Docs build
|
||
|
pool:
|
||
|
name: 'Windows Release'
|
||
|
#vmName: win2016-vs2017
|
||
|
|
||
|
workspace:
|
||
|
clean: all
|
||
|
|
||
|
steps:
|
||
|
- template: ./checkout.yml
|
||
|
|
||
|
- script: Doc\make.bat html
|
||
|
displayName: 'Build HTML docs'
|
||
|
env:
|
||
|
BUILDDIR: $(Build.BinariesDirectory)\Doc
|
||
|
|
||
|
#- powershell: iwr "https://www.python.org/ftp/python/3.7.3/python373.chm" -OutFile "$(Build.BinariesDirectory)\python390a0.chm"
|
||
|
# displayName: 'Cheat at building CHM docs'
|
||
|
|
||
|
- script: Doc\make.bat htmlhelp
|
||
|
displayName: 'Build CHM docs'
|
||
|
env:
|
||
|
BUILDDIR: $(Build.BinariesDirectory)\Doc
|
||
|
|
||
|
- task: CopyFiles@2
|
||
|
displayName: 'Assemble artifact: Doc'
|
||
|
inputs:
|
||
|
sourceFolder: $(Build.BinariesDirectory)\Doc
|
||
|
targetFolder: $(Build.ArtifactStagingDirectory)\Doc
|
||
|
contents: |
|
||
|
html\**\*
|
||
|
htmlhelp\*.chm
|
||
|
|
||
|
- task: PublishBuildArtifacts@1
|
||
|
displayName: 'Publish artifact: doc'
|
||
|
inputs:
|
||
|
PathtoPublish: $(Build.ArtifactStagingDirectory)\Doc
|
||
|
ArtifactName: doc
|
||
|
|
||
|
- job: Build_Python
|
||
|
displayName: Python build
|
||
|
|
||
|
pool:
|
||
|
vmName: win2016-vs2017
|
||
|
|
||
|
workspace:
|
||
|
clean: all
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
win32:
|
||
|
Name: win32
|
||
|
Arch: win32
|
||
|
Platform: x86
|
||
|
Configuration: Release
|
||
|
win32_d:
|
||
|
Name: win32_d
|
||
|
Arch: win32
|
||
|
Platform: x86
|
||
|
Configuration: Debug
|
||
|
amd64_d:
|
||
|
Name: amd64_d
|
||
|
Arch: amd64
|
||
|
Platform: x64
|
||
|
Configuration: Debug
|
||
|
|
||
|
steps:
|
||
|
- template: ./build-steps.yml
|
||
|
|
||
|
- job: Build_Python_NonPGO
|
||
|
displayName: Python non-PGO build
|
||
|
condition: and(succeeded(), ne(variables['DoPGO'], 'true'))
|
||
|
|
||
|
pool:
|
||
|
vmName: win2016-vs2017
|
||
|
|
||
|
workspace:
|
||
|
clean: all
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
amd64:
|
||
|
Name: amd64
|
||
|
Arch: amd64
|
||
|
Platform: x64
|
||
|
Configuration: Release
|
||
|
|
||
|
steps:
|
||
|
- template: ./build-steps.yml
|
||
|
|
||
|
|
||
|
- job: Build_Python_PGO
|
||
|
displayName: Python PGO build
|
||
|
condition: and(succeeded(), eq(variables['DoPGO'], 'true'))
|
||
|
|
||
|
pool:
|
||
|
name: 'Windows Release'
|
||
|
|
||
|
workspace:
|
||
|
clean: all
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
amd64:
|
||
|
Name: amd64
|
||
|
Arch: amd64
|
||
|
Platform: x64
|
||
|
Configuration: Release
|
||
|
|
||
|
steps:
|
||
|
- template: ./build-steps.yml
|
||
|
parameters:
|
||
|
ShouldPGO: true
|
||
|
|
||
|
|
||
|
- job: TclTk_Lib
|
||
|
displayName: Publish Tcl/Tk Library
|
||
|
|
||
|
pool:
|
||
|
vmName: win2016-vs2017
|
||
|
|
||
|
workspace:
|
||
|
clean: all
|
||
|
|
||
|
steps:
|
||
|
- template: ./checkout.yml
|
||
|
|
||
|
- script: PCbuild\get_externals.bat --no-openssl --no-libffi
|
||
|
displayName: 'Get external dependencies'
|
||
|
|
||
|
- task: MSBuild@1
|
||
|
displayName: 'Copy Tcl/Tk lib for publish'
|
||
|
inputs:
|
||
|
solution: PCbuild\tcltk.props
|
||
|
platform: x86
|
||
|
msbuildArguments: /t:CopyTclTkLib /p:OutDir="$(Build.ArtifactStagingDirectory)\tcl_win32"
|
||
|
|
||
|
- task: MSBuild@1
|
||
|
displayName: 'Copy Tcl/Tk lib for publish'
|
||
|
inputs:
|
||
|
solution: PCbuild\tcltk.props
|
||
|
platform: x64
|
||
|
msbuildArguments: /t:CopyTclTkLib /p:OutDir="$(Build.ArtifactStagingDirectory)\tcl_amd64"
|
||
|
|
||
|
- task: PublishBuildArtifacts@1
|
||
|
displayName: 'Publish artifact: tcltk_lib_win32'
|
||
|
inputs:
|
||
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)\tcl_win32'
|
||
|
ArtifactName: tcltk_lib_win32
|
||
|
|
||
|
- task: PublishBuildArtifacts@1
|
||
|
displayName: 'Publish artifact: tcltk_lib_amd64'
|
||
|
inputs:
|
||
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)\tcl_amd64'
|
||
|
ArtifactName: tcltk_lib_amd64
|