2019-06-14 12:29:20 -03:00
|
|
|
jobs:
|
|
|
|
- job: Build_Docs
|
|
|
|
displayName: Docs build
|
|
|
|
pool:
|
|
|
|
name: 'Windows Release'
|
2020-02-28 20:21:46 -04:00
|
|
|
#vmImage: windows-2019
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./checkout.yml
|
|
|
|
|
|
|
|
- script: Doc\make.bat html
|
|
|
|
displayName: 'Build HTML docs'
|
|
|
|
env:
|
|
|
|
BUILDDIR: $(Build.BinariesDirectory)\Doc
|
|
|
|
|
|
|
|
- script: Doc\make.bat htmlhelp
|
|
|
|
displayName: 'Build CHM docs'
|
|
|
|
env:
|
|
|
|
BUILDDIR: $(Build.BinariesDirectory)\Doc
|
|
|
|
|
2019-11-20 13:30:47 -04:00
|
|
|
#- powershell: |
|
|
|
|
# mkdir -Force "$(Build.BinariesDirectory)\Doc\htmlhelp"
|
|
|
|
# iwr "https://www.python.org/ftp/python/3.8.0/python380.chm" -OutFile "$(Build.BinariesDirectory)\Doc\htmlhelp\python390a0.chm"
|
|
|
|
# displayName: 'Cheat at building CHM docs'
|
|
|
|
|
2019-06-14 12:29:20 -03:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Assemble artifact: Doc'
|
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Build.BinariesDirectory)\Doc
|
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)\Doc
|
|
|
|
contents: |
|
|
|
|
html\**\*
|
|
|
|
htmlhelp\*.chm
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Publish artifact: doc'
|
|
|
|
inputs:
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.ArtifactStagingDirectory)\Doc
|
|
|
|
artifactName: doc
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
- job: Build_Python
|
|
|
|
displayName: Python build
|
|
|
|
|
|
|
|
pool:
|
2020-02-28 20:21:46 -04:00
|
|
|
vmImage: windows-2019
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
win32:
|
|
|
|
Name: win32
|
|
|
|
Arch: win32
|
|
|
|
Platform: x86
|
|
|
|
Configuration: Release
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: .\python
|
2019-06-14 12:29:20 -03:00
|
|
|
win32_d:
|
|
|
|
Name: win32_d
|
|
|
|
Arch: win32
|
|
|
|
Platform: x86
|
|
|
|
Configuration: Debug
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: .\python
|
2019-06-14 12:29:20 -03:00
|
|
|
amd64_d:
|
|
|
|
Name: amd64_d
|
|
|
|
Arch: amd64
|
|
|
|
Platform: x64
|
|
|
|
Configuration: Debug
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: .\python
|
2019-11-20 13:30:47 -04:00
|
|
|
arm64:
|
|
|
|
Name: arm64
|
|
|
|
Arch: arm64
|
|
|
|
Platform: ARM64
|
|
|
|
Configuration: Release
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: python
|
2019-11-20 13:30:47 -04:00
|
|
|
arm64_d:
|
|
|
|
Name: arm64_d
|
|
|
|
Arch: arm64
|
|
|
|
Platform: ARM64
|
|
|
|
Configuration: Debug
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: python
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./build-steps.yml
|
|
|
|
|
|
|
|
- job: Build_Python_NonPGO
|
|
|
|
displayName: Python non-PGO build
|
|
|
|
condition: and(succeeded(), ne(variables['DoPGO'], 'true'))
|
|
|
|
|
|
|
|
pool:
|
2020-02-28 20:21:46 -04:00
|
|
|
vmImage: windows-2019
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
amd64:
|
|
|
|
Name: amd64
|
|
|
|
Arch: amd64
|
|
|
|
Platform: x64
|
|
|
|
Configuration: Release
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: .\python
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./build-steps.yml
|
|
|
|
|
|
|
|
|
|
|
|
- job: Build_Python_PGO
|
|
|
|
displayName: Python PGO build
|
|
|
|
condition: and(succeeded(), eq(variables['DoPGO'], 'true'))
|
|
|
|
|
2019-06-14 18:19:25 -03:00
|
|
|
# Allow up to five hours for PGO
|
|
|
|
timeoutInMinutes: 300
|
|
|
|
|
2019-06-14 12:29:20 -03:00
|
|
|
pool:
|
|
|
|
name: 'Windows Release'
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
amd64:
|
|
|
|
Name: amd64
|
|
|
|
Arch: amd64
|
|
|
|
Platform: x64
|
|
|
|
Configuration: Release
|
2019-12-10 01:10:22 -04:00
|
|
|
_HostPython: .\python
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./build-steps.yml
|
|
|
|
parameters:
|
|
|
|
ShouldPGO: true
|
|
|
|
|
|
|
|
|
|
|
|
- job: TclTk_Lib
|
|
|
|
displayName: Publish Tcl/Tk Library
|
|
|
|
|
|
|
|
pool:
|
2020-02-28 20:21:46 -04:00
|
|
|
vmImage: windows-2019
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Publish artifact: tcltk_lib_win32'
|
|
|
|
inputs:
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\tcl_win32'
|
|
|
|
artifactName: tcltk_lib_win32
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Publish artifact: tcltk_lib_amd64'
|
|
|
|
inputs:
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\tcl_amd64'
|
|
|
|
artifactName: tcltk_lib_amd64
|