The workspace build pulls in bluer -> dbus -> libdbus-sys, which links against the system D-Bus library. The ubuntu-latest runner has pkg-config but not dbus-1.pc, so libdbus-sys's build script fails. Install the libdbus-1-dev headers (matching Dockerfile.ros2) before running the gate.
This commit is contained in:
@@ -34,5 +34,13 @@ jobs:
|
|||||||
- name: Cache cargo registry and target
|
- name: Cache cargo registry and target
|
||||||
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
||||||
|
|
||||||
|
# System library for tines-bt's bluer crate (D-Bus dev headers); the
|
||||||
|
# workspace build links libdbus-sys against system dbus-1. Keep in sync
|
||||||
|
# with Dockerfile.ros2.
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends libdbus-1-dev pkg-config
|
||||||
|
|
||||||
- name: Run CI gate
|
- name: Run CI gate
|
||||||
run: sh scripts/ci.sh
|
run: sh scripts/ci.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user