From 494b0681f831c76b28e0bcd02cd1b83378416e01 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 3 Nov 2019 05:06:53 +0100 Subject: Enable debug view explicitly and test it in CI --- .github/workflows/integration.yml | 4 +++- winit/src/lib.rs | 7 ++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5e73f3cb..16d60ea7 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,4 +19,6 @@ jobs: sudo apt-get install -y libasound2-dev libudev-dev - uses: actions/checkout@master - name: Run tests - run: cargo test --verbose --all --all-features + run: | + cargo test --verbose --all + cargo test --verbose --all --all-features diff --git a/winit/src/lib.rs b/winit/src/lib.rs index f66c0553..d9482fe4 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -9,11 +9,8 @@ pub use application::Application; // We disable debug capabilities on release builds unless the `debug` feature // is explicitly enabled. -#[cfg_attr(any(debug_assertions, feature = "debug"), path = "debug/basic.rs")] -#[cfg_attr( - not(any(debug_assertions, feature = "debug")), - path = "debug/null.rs" -)] +#[cfg_attr(feature = "debug", path = "debug/basic.rs")] +#[cfg_attr(not(feature = "debug"), path = "debug/null.rs")] mod debug; use debug::Debug; -- cgit