@@ -28,10 +28,32 @@ jobs:
2828 - name : install ROS 2
2929 uses : ros-tooling/setup-ros@v0.7
3030
31+ - name : build and test dependencies (ubuntu)
32+ if : ${{ matrix.distribution == 'ubuntu'}}
33+ run : |
34+ apt -y install --no-install-recommends python3-pip ninja-build
35+ apt -y purge meson
36+
3137 - name : build and test dependencies (almalinux)
3238 if : ${{ matrix.distribution == 'almalinux'}}
3339 run : |
34- dnf -y install libasan python3-mypy
40+ dnf -y install libasan python3-mypy python3-pip ninja-build
41+
42+ - name : install colcon-meson
43+ env :
44+ PIP_BREAK_SYSTEM_PACKAGES : 1
45+ run : |
46+ pip3 install colcon-meson meson>=0.63
47+
48+ - name : install libcamera dependencies (ubuntu)
49+ if : ${{ matrix.distribution == 'ubuntu'}}
50+ run : |
51+ apt -y install --no-install-recommends libyaml-dev python3-yaml python3-ply python3-jinja2
52+
53+ - name : install libcamera dependencies (almalinux)
54+ if : ${{ matrix.distribution == 'almalinux'}}
55+ run : |
56+ dnf -y install libyaml-devel python3-yaml python3-ply python3-jinja2
3557
3658 - name : setup rosdep
3759 run : |
@@ -42,16 +64,29 @@ jobs:
4264 colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
4365 colcon mixin update default
4466
67+ - run : |
68+ git clone https://git.libcamera.org/libcamera/libcamera.git -b v0.5.2 src/libcamera
69+
4570 - uses : actions/checkout@v5
4671 with :
47- path : src
72+ path : src/camera_ros
73+
74+ - name : list packages in workspace
75+ run : |
76+ colcon list
4877
4978 - name : build and test
5079 run : |
5180 rosdep install --from-paths src --ignore-src -y --rosdistro ${{ matrix.ros }}
5281 . /opt/ros/${{ matrix.ros }}/setup.sh
82+ colcon build \
83+ --event-handlers=console_cohesion+ \
84+ --meson-args "--auto-features=disabled" "-Dipas=[]" "-Dpipelines=[]" \
85+ --packages-up-to libcamera
5386 colcon build \
5487 --event-handlers=console_cohesion+ \
5588 --mixin asan-gcc tsan coverage-gcc memcheck \
5689 --packages-up-to camera_ros
57- colcon test --return-code-on-test-failure --event-handlers=console_cohesion+
90+ colcon test --return-code-on-test-failure \
91+ --event-handlers=console_cohesion+ \
92+ --packages-select camera_ros
0 commit comments