Skip to content

Commit 013dc62

Browse files
authored
First draft of workflow diagrams (#27)
Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com>
1 parent 1a0de67 commit 013dc62

23 files changed

+4765
-6
lines changed

.github/workflows/ci_linux.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,21 @@ jobs:
2828
- name: Setup rust
2929
run: rustup default ${{ matrix.rust-version }}
3030

31+
# As new versions of our dependencies come out, they might depend on newer
32+
# versions of the Rust compiler. When that happens, we'll use this step to
33+
# lock down the dependency to a version that is known to be compatible with
34+
# compiler version 1.75.
35+
- name: Patch dependencies
36+
if: ${{ matrix.rust-version == 1.75 }}
37+
run: ./scripts/patch-versions-msrv-1_75.sh
38+
3139
- name: Build default features
32-
run: cargo build
40+
run: cargo build --workspace
3341
- name: Test default features
34-
run: cargo test
42+
run: cargo test --workspace
43+
44+
- name: Test diagram
45+
run: cargo test --workspace -F=diagram
3546

3647
- name: Build single_threaded_async
3748
run: cargo build --features single_threaded_async

.github/workflows/ci_windows.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ jobs:
3030
shell: powershell
3131

3232
- name: Build default features
33-
run: cargo build
33+
run: cargo build --workspace
3434
shell: cmd
3535

3636
- name: Test default features
37-
run: cargo test
37+
run: cargo test --workspace
38+
shell: cmd
39+
40+
- name: Test diagram
41+
run: cargo test --workspace -F=diagram
3842
shell: cmd
3943

4044
- name: Build single_threaded_async

Cargo.toml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ description = "Reactive programming and workflow execution for bevy"
88
readme = "README.md"
99
repository = "https://github.com/open-rmf/bevy_impulse"
1010
keywords = ["reactive", "workflow", "behavior", "agent", "bevy"]
11-
categories = ["science::robotics", "asynchronous", "concurrency", "game-development"]
11+
categories = [
12+
"science::robotics",
13+
"asynchronous",
14+
"concurrency",
15+
"game-development",
16+
]
1217

1318
[dependencies]
1419
bevy_impulse_derive = { path = "macros", version = "0.0.2" }
@@ -27,7 +32,7 @@ bevy_tasks = { version = "0.12", features = ["multi-threaded"] }
2732

2833
itertools = "0.13"
2934
smallvec = "1.13"
30-
tokio = { version = "1.39", features = ["sync"]}
35+
tokio = { version = "1.39", features = ["sync"] }
3136
futures = "0.3"
3237
backtrace = "0.3"
3338
anyhow = "1.0"
@@ -41,8 +46,36 @@ thiserror = "1.0"
4146
bevy_core = "0.12"
4247
bevy_time = "0.12"
4348

49+
schemars = { version = "0.8.21", optional = true }
50+
serde = { version = "1.0.210", features = ["derive"], optional = true }
51+
serde_json = { version = "1.0.128", optional = true }
52+
cel-interpreter = { version = "0.9.0", features = ["json"], optional = true }
53+
tracing = "0.1.41"
54+
strum = { version = "0.26.3", optional = true, features = ["derive"] }
55+
semver = { version = "1.0.24", optional = true }
56+
4457
[features]
4558
single_threaded_async = ["dep:async-task"]
59+
diagram = [
60+
"dep:cel-interpreter",
61+
"dep:schemars",
62+
"dep:semver",
63+
"dep:serde",
64+
"dep:serde_json",
65+
"dep:strum",
66+
]
4667

4768
[dev-dependencies]
4869
async-std = { version = "1.12" }
70+
test-log = { version = "0.2.16", features = [
71+
"trace",
72+
], default-features = false }
73+
74+
[workspace]
75+
members = ["examples/diagram/calculator"]
76+
77+
[[bin]]
78+
name = "generate_schema"
79+
path = "src/diagram/generate_schema.rs"
80+
required-features = ["diagram"]
81+
doc = false

0 commit comments

Comments
 (0)