Skip to content

Commit

Permalink
Add x11 feature for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aevyrie committed Jul 5, 2024
1 parent c66e3ad commit fa9e0b3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/[email protected]
- run: cargo check
- run: cargo check --features=bevy_winit/x11

clippy:
runs-on: ubuntu-latest
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/[email protected]
- run: rustup component add clippy
- run: cargo clippy -- -D warnings
- run: cargo clippy --features=bevy_winit/x11 -- -D warnings

doc:
runs-on: ubuntu-latest
Expand All @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/[email protected]
- run: cargo doc --no-deps --workspace
- run: cargo doc --features=bevy_winit/x11 --no-deps --workspace
env:
RUSTDOCFLAGS: -D warnings

Expand All @@ -60,4 +60,4 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/[email protected]
- run: cargo test
- run: cargo test --features=bevy_winit/x11
28 changes: 17 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ documentation = "https://docs.rs/bevy_framepace"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy_app = "0.14.0"
bevy_ecs = "0.14.0"
bevy_diagnostic = "0.14.0"
bevy_log = "0.14.0"
bevy_render = "0.14.0"
bevy_reflect = "0.14.0"
bevy_time = "0.14.0"
bevy_utils = "0.14.0"
bevy_window = "0.14.0"
bevy_winit = "0.14.0"
bevy_app = { version = "0.14.0", default-features = false }
bevy_ecs = { version = "0.14.0", default-features = false }
bevy_diagnostic = { version = "0.14.0", default-features = false }
bevy_log = { version = "0.14.0", default-features = false }
bevy_render = { version = "0.14.0", default-features = false }
bevy_reflect = { version = "0.14.0", default-features = false }
bevy_time = { version = "0.14.0", default-features = false }
bevy_utils = { version = "0.14.0", default-features = false }
bevy_window = { version = "0.14.0", default-features = false }
bevy_winit = { version = "0.14.0", default-features = false }
# Non-bevy
spin_sleep = "1.0"

Expand All @@ -29,7 +29,13 @@ default = ["framepace_debug"]
framepace_debug = []

[dev-dependencies]
bevy = "0.14.0"
bevy = { version = "0.14.0", default-features = false, features = [
"bevy_color",
"bevy_ui",
"bevy_gizmos",
"bevy_winit",
"default_font",
] }

[[example]]
name = "demo"
Expand Down
1 change: 1 addition & 0 deletions examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ fn setup(mut commands: Commands, mut windows: Query<&mut Window>) {
order: 10,
..default()
},
tonemapping: bevy::core_pipeline::tonemapping::Tonemapping::None,
..default()
},));
commands.spawn((Camera3dBundle::default(),));
Expand Down

0 comments on commit fa9e0b3

Please sign in to comment.