Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 21ca80eef44bbfb0de4bd4c3032873d36bf7c37f authored by Ethan Furman on 08 December 2020, 21:28:47 UTC
[3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706)
Tip revision: 21ca80e
find-sdk.yml
# Locate the Windows SDK and add its binaries directory to PATH
#
# `toolname` can be overridden to use a different marker file.

parameters:
  toolname: signtool.exe

steps:
  - powershell: |
      $kitroot = (gp 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\').KitsRoot10
      $tool = (gci -r "$kitroot\Bin\*\${{ parameters.toolname }}" | sort FullName -Desc | select -First 1)
      if (-not $tool) {
          throw "SDK is not available"
      }
      Write-Host "##vso[task.prependpath]$($tool.Directory)"
      Write-Host "Adding $($tool.Directory) to PATH"
    displayName: 'Add WinSDK tools to path'
back to top