Skip to content

Commit

Permalink
Further improvements to discoverability
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Oct 20, 2023
1 parent 46db61f commit 3006a5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions xtask/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3006a5e

Please sign in to comment.