@@ -2,7 +2,6 @@ parameters:
22 PGInstrument : false
33 PGRun : false
44 PGUpdate : false
5- DoFreethreaded : false
65
76steps :
87- template : ./checkout.yml
@@ -23,21 +22,12 @@ steps:
2322 - ${{ if eq(parameters.PGInstrument, 'true') }} :
2423 - powershell : |
2524 $env:SigningCertificate = $null
26- .\PCbuild\build.bat -v -p $(Platform) -c PGInstrument
25+ .\PCbuild\build.bat -v -p $(Platform) -c PGInstrument $(ExtraOptions)
2726 displayName: 'Run build'
2827 env:
2928 IncludeUwp: true
3029 Py_OutDir: '$(Build.BinariesDirectory)\bin'
3130
32- - ${{ if eq(parameters.DoFreethreaded, 'true') }} :
33- - powershell : |
34- $env:SigningCertificate = $null
35- .\PCbuild\build.bat -v -p $(Platform) -c PGInstrument --disable-gil
36- displayName: 'Run free-threaded build'
37- env:
38- IncludeUwp: true
39- Py_OutDir: '$(Build.BinariesDirectory)\bin'
40-
4131 - ${{ if ne(parameters.PGRun, 'true') }} :
4232 # Not running in this job, so we publish our entire build and object files
4333
@@ -70,21 +60,13 @@ steps:
7060 targetPath : ' $(Build.BinariesDirectory)\bin\$(Arch)\instrumented'
7161
7262 - powershell : |
73- & "$(Build.BinariesDirectory)\bin\$(Arch)\instrumented\python.exe" -m test --pgo
63+ $exe = (gci "$(Build.BinariesDirectory)\bin\$(Arch)\instrumented\$(PythonExePattern)" | select -First 1)
64+ & $exe -m test --pgo
7465 ignoreLASTEXITCODE: true
7566 displayName: 'Collect profile'
7667 env:
7768 PYTHONHOME: '$(Build.SourcesDirectory)'
7869
79- - ${{ if eq(parameters.DoFreethreaded, 'true') }} :
80- - powershell : |
81- $exe = (gci "$(Build.BinariesDirectory)\bin\$(Arch)\instrumented\python3*t.exe" | select -First 1)
82- & $exe -m test --pgo
83- ignoreLASTEXITCODE: true
84- displayName: 'Collect free-threaded profile'
85- env:
86- PYTHONHOME: '$(Build.SourcesDirectory)'
87-
8870
8971 - ${{ if ne(parameters.PGUpdate, 'true') }} :
9072 # Not finishing in this job, so publish the binaries
@@ -121,21 +103,12 @@ steps:
121103
122104 - powershell : |
123105 $env:SigningCertificate = $null
124- .\PCbuild\build.bat -v -p $(Platform) -c PGUpdate
106+ .\PCbuild\build.bat -v -p $(Platform) -c PGUpdate $(ExtraOptions)
125107 displayName: 'Run build with PGO'
126108 env:
127109 IncludeUwp: true
128110 Py_OutDir: '$(Build.BinariesDirectory)\bin'
129111
130- - ${{ if eq(parameters.DoFreethreaded, 'true') }} :
131- - powershell : |
132- $env:SigningCertificate = $null
133- .\PCbuild\build.bat -v -p $(Platform) -c PGUpdate --disable-gil
134- displayName: 'Run free-threaded build with PGO'
135- env:
136- IncludeUwp: true
137- Py_OutDir: '$(Build.BinariesDirectory)\bin'
138-
139112 - powershell : |
140113 $kitroot = (gp 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\').KitsRoot10
141114 $tool = (gci -r "$kitroot\Bin\*\x64\signtool.exe" | sort FullName -Desc | select -First 1)
0 commit comments