Skip to content

Commit 328f2b4

Browse files
author
Timothy Mothra Lee (from Dev Box)
committed
testing changes for windows sdk
1 parent 12afcd9 commit 328f2b4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/codeql-daily.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323

2424
- name: Set up Windows SDK
2525
uses: ilammy/msvc-dev-cmd@v1
26-
with:
27-
sdk: 10.0.18362.0
2826

2927
- name: Set up Java 17
3028
uses: actions/setup-java@v4
@@ -44,9 +42,18 @@ jobs:
4442
- name: Build native C++ code (Windows-specific)
4543
shell: powershell
4644
run: |
45+
# Find the Windows SDK path and use it
46+
$winSdkPath = (Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\include" | Select-Object -Last 1).FullName
47+
Write-Host "Using Windows SDK from path: $winSdkPath"
48+
4749
# Set environment variables for Windows SDK and Visual Studio
48-
$env:APPINSIGHTS_WIN10_SDK_PATH = "$env:WindowsSdkDir"
49-
$env:APPINSIGHTS_VS_PATH = "${env:VCInstallDir}\..\\.."
50+
$env:APPINSIGHTS_WIN10_SDK_PATH = "C:\Program Files (x86)\Windows Kits\10"
51+
$env:APPINSIGHTS_VS_PATH = $env:VsInstallRoot
52+
53+
# Log environment for debugging
54+
Write-Host "APPINSIGHTS_WIN10_SDK_PATH: $env:APPINSIGHTS_WIN10_SDK_PATH"
55+
Write-Host "APPINSIGHTS_VS_PATH: $env:APPINSIGHTS_VS_PATH"
56+
5057
./gradlew "-Dai.etw.native.build=release" :etw:native:build --info
5158
5259
- name: Assemble

0 commit comments

Comments
 (0)