mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-29 10:13:34 +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:
|
include:
|
||||||
- os: macos-10.15
|
- os: macos-10.15
|
||||||
wasm: false
|
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
|
TEST_COMMAND: cargo test --all-targets --no-run
|
||||||
- os: ubuntu-18.04
|
- os: ubuntu-18.04
|
||||||
wasm: false
|
wasm: false
|
||||||
CHECK_COMMAND: cargo check --all-targets
|
CHECK_COMMAND: cargo check --all-targets --all-features
|
||||||
TEST_COMMAND: cargo test --all-targets --no-run
|
TEST_COMMAND: cargo test --all-targets --no-run
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
wasm: false
|
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
|
TEST_COMMAND: rustup default stable-msvc && cargo test --all-targets --no-run
|
||||||
- wasm: true
|
- 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
|
TEST_COMMAND: rustup target add wasm32-unknown-unknown && cargo test --all-targets --no-run --target=wasm32-unknown-unknown
|
||||||
RUSTFLAGS: --cfg=web_sys_unstable_apis
|
RUSTFLAGS: --cfg=web_sys_unstable_apis
|
||||||
steps:
|
steps:
|
||||||
|
@ -72,7 +72,7 @@ struct Setup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn setup<E: Example>(title: &str) -> 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");
|
let chrome_tracing_dir = std::env::var("WGPU_CHROME_TRACE");
|
||||||
wgpu::util::initialize_default_subscriber(
|
wgpu::util::initialize_default_subscriber(
|
||||||
|
Loading…
Reference in New Issue
Block a user