Skip to content

Commit 377ed0a

Browse files
committed
* fix Windows build -> debug5
1 parent 6ee7b24 commit 377ed0a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build-windows.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,29 @@ jobs:
4949
run: |
5050
xcopy /E /I /H /Y async\.github .github
5151
52+
- name: Install Windows Debugging Tools
53+
shell: pwsh
54+
run: |
55+
$url = "https://download.microsoft.com/download/4/2/2/42245968-6A79-4DA7-A5FB-08C0AD0AE661/windowssdk/winsdksetup.exe"
56+
Invoke-WebRequest -Uri $url -OutFile "winsdksetup.exe"
57+
.\winsdksetup.exe /quiet /norestart /features OptionId.WindowsDesktopDebuggers
58+
59+
- name: Add Windows Debugging Tools to PATH
60+
shell: pwsh
61+
run: |
62+
$dbgPath = "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64"
63+
if (Test-Path $dbgPath) {
64+
Add-Content $Env:GITHUB_PATH $dbgPath
65+
Write-Host "Added $dbgPath to PATH"
66+
} else {
67+
Write-Host "Searching for debugging tools..."
68+
Get-ChildItem "C:\Program Files*\Windows Kits" -Recurse -Name "gflags.exe" -ErrorAction SilentlyContinue | ForEach-Object {
69+
$foundPath = Split-Path (Get-ChildItem "C:\Program Files*\Windows Kits" -Recurse -Filter "gflags.exe" -ErrorAction SilentlyContinue | Select-Object -First 1).FullName
70+
Add-Content $Env:GITHUB_PATH $foundPath
71+
Write-Host "Found and added $foundPath to PATH"
72+
}
73+
}
74+
5275
- name: Setup LibUV
5376
shell: powershell
5477
run: |

0 commit comments

Comments
 (0)