Skip to content

Commit 09d5e39

Browse files
Add IddCx header location debug step to CI workflows
Introduces a PowerShell step in both build-and-sign-sequential and ci-validation workflows to output and verify the location of the IddCx header in the Windows SDK. This aids in diagnosing SDK path issues during CI runs.
1 parent 54ee545 commit 09d5e39

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/build-and-sign-sequential.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@ jobs:
8484
Write-Output "Using WindowsTargetPlatformVersion: $sdkVersion"
8585
"WINDOWS_SDK_DIR=$kitsRoot" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8686
"WINDOWS_TARGET_PLATFORM_VERSION=$sdkVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
87+
88+
- name: Debug IddCx header location
89+
shell: pwsh
90+
run: |
91+
$ErrorActionPreference = "Continue"
92+
$base = Join-Path $env:WINDOWS_SDK_DIR ("Include\" + $env:WINDOWS_TARGET_PLATFORM_VERSION + "\um\iddcx")
93+
Write-Output "IddCx base: $base"
94+
if (Test-Path $base) {
95+
Get-ChildItem -Path $base -Directory -ErrorAction SilentlyContinue | ForEach-Object { Write-Output ("- " + $_.Name) }
96+
Get-ChildItem -Path $base -Recurse -Filter "IddCx.h" -ErrorAction SilentlyContinue | Select-Object -First 20 | ForEach-Object { Write-Output ("Found: " + $_.FullName) }
97+
} else {
98+
Write-Output "IddCx base directory not found."
99+
}
87100
88101
- name: Setup .NET
89102
uses: actions/setup-dotnet@v4

.github/workflows/ci-validation.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ jobs:
7272
"WINDOWS_SDK_DIR=$kitsRoot" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
7373
"WINDOWS_TARGET_PLATFORM_VERSION=$sdkVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
7474
75+
- name: Debug IddCx header location
76+
shell: pwsh
77+
run: |
78+
$ErrorActionPreference = "Continue"
79+
$base = Join-Path $env:WINDOWS_SDK_DIR ("Include\" + $env:WINDOWS_TARGET_PLATFORM_VERSION + "\um\iddcx")
80+
Write-Output "IddCx base: $base"
81+
if (Test-Path $base) {
82+
Get-ChildItem -Path $base -Directory -ErrorAction SilentlyContinue | ForEach-Object { Write-Output ("- " + $_.Name) }
83+
Get-ChildItem -Path $base -Recurse -Filter "IddCx.h" -ErrorAction SilentlyContinue | Select-Object -First 20 | ForEach-Object { Write-Output ("Found: " + $_.FullName) }
84+
} else {
85+
Write-Output "IddCx base directory not found."
86+
}
87+
7588
- name: Setup Node.js
7689
uses: actions/setup-node@v4
7790
with:

0 commit comments

Comments
 (0)