Skip to content

Commit 1527a5b

Browse files
committed
gfdgfd
1 parent b43e788 commit 1527a5b

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ env:
1212
RUSTDOCFLAGS: --deny warnings
1313

1414
jobs:
15-
# Check formatting.
15+
# Check formatting
16+
1617
format:
1718
name: Format
1819
runs-on: ubuntu-latest
@@ -29,7 +30,8 @@ jobs:
2930
- name: Check formatting
3031
run: cargo fmt --all -- --check
3132

32-
# Run Clippy lints.
33+
# Run Clippy lints
34+
3335
clippy:
3436
name: Clippy
3537
runs-on: ubuntu-latest
@@ -54,7 +56,8 @@ jobs:
5456
- name: Run Clippy lints
5557
run: cargo clippy --workspace --all-features --all-targets -- --deny warnings
5658

57-
# Check documentation.
59+
# Check documentation
60+
5861
doc:
5962
name: Docs
6063
runs-on: ubuntu-latest
@@ -77,7 +80,8 @@ jobs:
7780
- name: Check documentation
7881
run: cargo doc --workspace --document-private-items --no-deps
7982

80-
# Run tests.
83+
# Run tests
84+
8185
test:
8286
name: Tests
8387
runs-on: ubuntu-latest
@@ -99,6 +103,6 @@ jobs:
99103

100104
- name: Run tests
101105
run: |
102-
cargo test --workspace --all-features --all-targets
103-
# TODO: Workaround for https://github.com/rust-lang/cargo/issues/6669
104-
cargo test --workspace --all-features --doc
106+
cargo test --workspace --no-default-features --all-targets
107+
# Workaround for https://github.com/rust-lang/cargo/issues/6669
108+
cargo test --workspace --no-default-features --doc

Cargo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ resolver = "3"
1212
exclude = ["assets/example.gif", "assets/example3d.gif"]
1313

1414
[features]
15-
default = []
15+
default = [
16+
# In practice, this feature flag is not required as we use optional parameters for our Bevy systems.
17+
# However, the Github Action's environment does not support winit, which is a transitive dependency of bevy/custom_cursor.
18+
# So hiding this behind a feature allows us to run tests with --no-default-features on the CI server and circumvent the issue.
19+
"custom_cursor"
20+
]
1621
custom_cursor = ["bevy/custom_cursor"]
1722

1823
[dependencies]
@@ -25,7 +30,10 @@ bevy = { version = "0.17.0", default-features = false, features = [
2530

2631
[dev-dependencies]
2732
approx = "0.5.1"
28-
bevy = { version = "0.17.0", features = ["bevy_dev_tools"] }
33+
bevy = { version = "0.17.0", features = [
34+
# Needed for the "stress" example as it uses Bevy's FPS overlay
35+
"bevy_dev_tools"]
36+
}
2937
clap = { version = "4.5.16", features = ["derive"] }
3038
rand = "0.9"
3139

0 commit comments

Comments
 (0)