mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[ci] Check with profiling enabled.
Minimum version of `profiling` increases from ^1.0.0 to ^1.0.1 because the `type-check` feature was added in 1.0.1.
This commit is contained in:
parent
da6ccd5516
commit
c0a8ba69b0
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -313,6 +313,10 @@ jobs:
|
||||
# Check with all features.
|
||||
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features
|
||||
|
||||
# Check with all features and profiling macro code.
|
||||
# If we don't check this then errors inside `profiling::scope!()` will not be caught.
|
||||
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --benches --all-features --features test-build-with-profiling
|
||||
|
||||
# build docs
|
||||
cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-features --no-deps
|
||||
|
||||
|
||||
@ -162,7 +162,7 @@ pollster = "0.4"
|
||||
portable-atomic = "1.8"
|
||||
portable-atomic-util = "0.2.4"
|
||||
pp-rs = "0.2.1"
|
||||
profiling = { version = "1", default-features = false }
|
||||
profiling = { version = "1.0.1", default-features = false }
|
||||
quote = "1.0.38"
|
||||
raw-window-handle = { version = "0.6.2", default-features = false }
|
||||
rwh_05 = { version = "0.5.2", package = "raw-window-handle" } # temporary compatibility for glutin-winit
|
||||
|
||||
@ -29,6 +29,9 @@ harness = true
|
||||
|
||||
[features]
|
||||
webgl = ["wgpu/webgl"]
|
||||
# This feature is not actually used by this package, but it being present somewhere in the workspace
|
||||
# allows us to force the build to have profiling code enabled so we can test that configuration.
|
||||
test-build-with-profiling = ["profiling/type-check"]
|
||||
|
||||
[dependencies]
|
||||
wgpu = { workspace = true, features = ["noop"] }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user