From 3006a5e312a6ec711e573a23acb19400984322a6 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Fri, 20 Oct 2023 00:51:04 -0400 Subject: [PATCH] Further improvements to discoverability --- .github/workflows/ci.yml | 13 ++++++++----- xtask/src/test.rs | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28ff785882..3a7af93a27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -356,17 +356,20 @@ jobs: . -> target xtask -> xtask/target + - name: run wgpu-info + shell: bash + run: | + export RUST_LOG=trace + + # This needs to match the command in xtask/tests.rs + cargo llvm-cov --no-cfg-coverage --no-report run --bin wgpu-info + - name: run tests shell: bash run: | set -e cargo xtask test --llvm-cov - - - name: print gpuinfo - shell: bash - run: | - cat .gpuconfig - uses: actions/upload-artifact@v3 if: always() # We want artifacts even if the tests fail. diff --git a/xtask/src/test.rs b/xtask/src/test.rs index 6d003c7a9f..23035146c0 100644 --- a/xtask/src/test.rs +++ b/xtask/src/test.rs @@ -3,6 +3,7 @@ use pico_args::Arguments; pub fn run_tests(mut args: Arguments) -> anyhow::Result<()> { let llvm_cov = args.contains("--llvm-cov"); + // These needs to match the command in "run wgpu-info" in `.github/workflows/ci.yml` let llvm_cov_flags: &[_] = if llvm_cov { &["llvm-cov", "--no-cfg-coverage", "--no-report"] } else {