Merge pull request #332 from jb-balaji/ros2_jazzy #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ubuntu-22.04-Humble-CI | |
| on: | |
| push: | |
| branches: [ "ros2" ] | |
| pull_request: | |
| branches: [ "ros2" ] | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: install ros2 humble | |
| uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: humble | |
| - run: "source /opt/ros/humble/setup.bash && ros2 run --help" | |
| - name: install openvino 2024.6 | |
| run: | | |
| # https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html | |
| sudo apt update && sudo apt install -y curl wget gnupg2 lsb-release | |
| wget https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.6/linux/l_openvino_toolkit_ubuntu22_2024.6.0.17404.4c0f47d2335_x86_64.tgz | |
| tar -xf l_openvino_toolkit_ubuntu22_2024.6.0.17404.4c0f47d2335_x86_64.tgz | |
| sudo mkdir -p /opt/intel | |
| sudo mv l_openvino_toolkit_ubuntu22_2024.6.0.17404.4c0f47d2335_x86_64 /opt/intel/openvino_2024 | |
| source /opt/intel/openvino_2024/setupvars.sh | |
| ls -lh /opt/intel/openvino_2024 | |
| - name: install librealsense2 | |
| run: | | |
| # https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md | |
| sudo mkdir -p /etc/apt/keyrings | |
| curl -sSf https://librealsense.realsenseai.com/Debian/librealsense.pgp | sudo tee /etc/apt/keyrings/librealsense.pgp > /dev/null | |
| echo "deb [signed-by=/etc/apt/keyrings/librealsense.pgp] https://librealsense.realsenseai.com/Debian/apt-repo `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/librealsense.list | |
| sudo apt-get update && sudo apt-get install -y librealsense2-dev librealsense2-utils | |
| dpkg -l |grep realsense | |
| - name: build ros2 openvino toolkit | |
| run: | | |
| mkdir -p ~/ros2_ws/src | |
| env | |
| cp -rf ${GITHUB_WORKSPACE} ~/ros2_ws/src | |
| cd ~/ros2_ws/src | |
| git clone https://github.com/intel/ros2_object_msgs.git | |
| cd ros2_object_msgs && git checkout ros2 && cd ~/ros2_ws/ | |
| source /opt/ros/humble/setup.bash | |
| source /opt/intel/openvino_2024/setupvars.sh | |
| colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release |