File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments