File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments