Skip to content

Commit 8e5138d

Browse files
authored
Add capability of outputting DxDiag when running pipelines (#1056)
This patch makes pipelines emit dxdiag information when failing.
1 parent e2679fa commit 8e5138d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build-and-test-callable.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,20 @@ jobs:
182182
with:
183183
comment_mode: off
184184
files: llvm-project/build/**/testresults.xunit.xml
185+
- name: Run dxdiag (Windows only)
186+
if: inputs.OS == 'windows' && failure()
187+
shell: powershell
188+
run: |
189+
$fileName = "dxdiag.txt"
190+
$output = Join-Path $env:RUNNER_TEMP $fileName
191+
dxdiag /t $output | Out-Null
192+
Write-Host "DxDiag report saved to $output"
193+
- name: Upload dxdiag artifact
194+
if: inputs.OS == 'windows' && failure()
195+
uses: actions/upload-artifact@v4
196+
with:
197+
name: dxdiag-${{ inputs.SKU }}-${{inputs.TestTarget}}.txt
198+
path: ${{ runner.temp }}/dxdiag.txt
185199
#- name: Publish Test Results
186200
# uses: EnricoMi/publish-unit-test-result-action/windows@34d7c956a59aed1bfebf31df77b8de55db9bbaaf # v2.21.0
187201
# if: always() && inputs.OS == 'windows'

0 commit comments

Comments
 (0)