Skip to content

add CI pipeline for ros2 #30

add CI pipeline for ros2

add CI pipeline for ros2 #30

Workflow file for this run

---
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: Hydra Build and Test
on: {push: {branches: [main]}, pull_request: {}}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: sudo apt-get update && sudo apt install pipx
- name: Lint
run: pipx install pre-commit && cd ${{github.workspace}} && pre-commit run --all-files
ros2:
runs-on: ubuntu-latest
container: ros:jazzy-perception
steps:
- uses: actions/checkout@v4
with: {path: src/hydra}
- name: Dependencies
run: |
apt update && apt install -y python3-vcstool git
vcs import src < src/hydra/install/packages.yaml
rosdep update --rosdistro jazzy && rosdep install --rosdistro jazzy --from-paths src --ignore-src -r -y
- name: Build
shell: bash
run: |
source /opt/ros/jazzy/setup.bash
colcon build --cmake-args --no-warn-unused-cli -DCMAKE_BUILD_TYPE=Release -DSEMANTIC_INFERENCE_USE_TRT=OFF
- name: Test
shell: bash
run: |-
source /opt/ros/jazzy/setup.bash
colcon test --packages-select hydra hydra_visualizer hydra_ros