From f41ff5da550e6f92a0f08a7727dc7a2a1f52dfa2 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Fri, 5 Jul 2024 00:47:52 -0700 Subject: [PATCH] Add x11 feature for ci --- .github/workflows/rust.yml | 8 ++++---- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ade3999..d7345dc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - - run: cargo check + - run: cargo check --features=bevy/x11 clippy: runs-on: ubuntu-latest @@ -40,7 +40,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - run: rustup component add clippy - - run: cargo clippy -- -D warnings + - run: cargo clippy --features=bevy/x11 -- -D warnings doc: runs-on: ubuntu-latest @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - - run: cargo doc --no-deps --workspace + - run: cargo doc --features=bevy/x11 --no-deps --workspace env: RUSTDOCFLAGS: -D warnings @@ -60,4 +60,4 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2.7.0 - - run: cargo test + - run: cargo test --features=bevy/x11 diff --git a/Cargo.toml b/Cargo.toml index 7a24d9e..5478c17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ default = ["framepace_debug"] framepace_debug = [] [dev-dependencies] -bevy = "0.14.0" +bevy = { version = "0.14.0" } [[example]] name = "demo"