Skip to content

Commit bff0858

Browse files
committed
Print .gpuconfig directly in CI
1 parent 455c620 commit bff0858

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -588,16 +588,6 @@ jobs:
588588
# Delete snapshots so we can ensure there aren't any excess output files.
589589
rm -r naga/tests/out
590590
591-
- name: Run `wgpu-info`
592-
shell: bash
593-
run: |
594-
echo "$PATH"
595-
596-
export RUST_LOG=trace
597-
598-
# This needs to match the command in xtask/tests.rs
599-
cargo --locked llvm-cov --no-cfg-coverage --no-report run --bin wgpu-info -- -vv
600-
601591
- name: Run tests
602592
shell: bash
603593
run: |
@@ -610,13 +600,23 @@ jobs:
610600
run: git add . && git diff --exit-code HEAD naga/tests/out
611601

612602
- uses: actions/upload-artifact@v5
603+
name: Upload comparison images
613604
if: always() # We want artifacts even if the tests fail.
614605
with:
615606
name: comparison-images-${{ matrix.os }}
616607
path: |
617608
**/*-actual.png
618609
**/*-difference.png
619610
611+
# Print GPU configuration so we can see what features were available during the test.
612+
- name: Print GPU configurations
613+
if: always() # We want this information even if the tests fail.
614+
shell: bash
615+
run: |
616+
set -e
617+
618+
cat .gpuconfig
619+
620620
- name: Generate coverage report
621621
id: coverage
622622
shell: bash

0 commit comments

Comments
 (0)