mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
[rs] Enable features in CI to prevent compiler errors
This commit is contained in:
parent
26eb6c0882
commit
3eda1c5990
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -19,18 +19,18 @@ jobs:
|
||||
include:
|
||||
- os: macos-10.15
|
||||
wasm: false
|
||||
CHECK_COMMAND: cargo check --all-targets --features vulkan-portability
|
||||
CHECK_COMMAND: cargo check --all-targets --all-features
|
||||
TEST_COMMAND: cargo test --all-targets --no-run
|
||||
- os: ubuntu-18.04
|
||||
wasm: false
|
||||
CHECK_COMMAND: cargo check --all-targets
|
||||
CHECK_COMMAND: cargo check --all-targets --all-features
|
||||
TEST_COMMAND: cargo test --all-targets --no-run
|
||||
- os: windows-2019
|
||||
wasm: false
|
||||
CHECK_COMMAND: rustup default stable-msvc && cargo check --all-targets
|
||||
CHECK_COMMAND: rustup default stable-msvc && cargo check --all-targets --all-features
|
||||
TEST_COMMAND: rustup default stable-msvc && cargo test --all-targets --no-run
|
||||
- wasm: true
|
||||
CHECK_COMMAND: rustup target add wasm32-unknown-unknown && cargo check --all-targets --target=wasm32-unknown-unknown
|
||||
CHECK_COMMAND: rustup target add wasm32-unknown-unknown && cargo check --all-targets --all-features --target=wasm32-unknown-unknown
|
||||
TEST_COMMAND: rustup target add wasm32-unknown-unknown && cargo test --all-targets --no-run --target=wasm32-unknown-unknown
|
||||
RUSTFLAGS: --cfg=web_sys_unstable_apis
|
||||
steps:
|
||||
|
@ -72,7 +72,7 @@ struct Setup {
|
||||
}
|
||||
|
||||
async fn setup<E: Example>(title: &str) -> Setup {
|
||||
#[cfg(feature = "subscriber")]
|
||||
#[cfg(all(not(target_arch = "wasm32"), feature = "subscriber"))]
|
||||
{
|
||||
let chrome_tracing_dir = std::env::var("WGPU_CHROME_TRACE");
|
||||
wgpu::util::initialize_default_subscriber(
|
||||
|
Loading…
Reference in New Issue
Block a user