Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 8e9afaf8226b62a18080d69533a41159c70193cb authored by Pablo Galindo on 05 October 2020, 17:24:54 UTC
Python 3.10.0a1
Tip revision: 8e9afaf
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