Skip to content

Commit e7575ed

Browse files
committed
Source ROS before building
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 5fe2832 commit e7575ed

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/rust-minimal.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ jobs:
6060
components: clippy, rustfmt
6161

6262
- name: Test default features
63-
run: cargo test --workspace
63+
run: |
64+
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
65+
cargo test --workspace
6466
6567
- name: Test with serde
66-
run: cargo test --workspace -F=serde
68+
run: |
69+
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
70+
cargo test --workspace -F=serde
6771
6872
- name: Build docs
69-
run: cargo doc --all-features
73+
run: |
74+
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
75+
cargo doc --all-features

.github/workflows/rust-stable.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust Minimal
1+
name: Rust Stable
22

33
on:
44
push:
@@ -60,10 +60,16 @@ jobs:
6060
components: clippy, rustfmt
6161

6262
- name: Test default features
63-
run: cargo test --workspace
63+
run: |
64+
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
65+
cargo test --workspace
6466
6567
- name: Test with serde
66-
run: cargo test --workspace -F=serde
68+
run: |
69+
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
70+
cargo test --workspace -F=serde
6771
6872
- name: Build docs
69-
run: cargo doc --all-features
73+
run: |
74+
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh
75+
cargo doc --all-features

0 commit comments

Comments
 (0)