|
| 1 | +# https://github.com/ros-tooling/setup-ros |
| 2 | +name: jazzy_and_rolling # On Linux, iterates on all ROS 1 and ROS 2 distributions. |
| 3 | +on: [push,workflow_dispatch] |
| 4 | +jobs: |
| 5 | + test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions. |
| 6 | + runs-on: ubuntu-latest |
| 7 | + strategy: |
| 8 | + matrix: |
| 9 | + ros_distribution: |
| 10 | + - jazzy |
| 11 | + - rolling |
| 12 | + |
| 13 | + # Define the Docker image(s) associated with each ROS distribution. |
| 14 | + # The include syntax allows additional variables to be defined, like |
| 15 | + # docker_image in this case. See documentation: |
| 16 | + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build |
| 17 | + # |
| 18 | + # Platforms are defined in REP 3 and REP 2000: |
| 19 | + # https://ros.org/reps/rep-0003.html |
| 20 | + # https://ros.org/reps/rep-2000.html |
| 21 | + include: |
| 22 | + |
| 23 | + # Jazzy Jalisco (May 2024 - May 2029) |
| 24 | + - docker_image: ubuntu:noble |
| 25 | + ros_distribution: jazzy |
| 26 | + ros_version: 2 |
| 27 | + |
| 28 | + # Rolling Ridley (No End-Of-Life) |
| 29 | + - docker_image: ubuntu:noble |
| 30 | + ros_distribution: rolling |
| 31 | + ros_version: 2 |
| 32 | + container: |
| 33 | + image: ${{ matrix.docker_image }} |
| 34 | + steps: |
| 35 | + - name: setup ROS environment |
| 36 | + uses: ros-tooling/[email protected] |
| 37 | + with: |
| 38 | + required-ros-distributions: ${{ matrix.ros_distribution }} |
| 39 | + - name: install DQ Robotics Devel |
| 40 | + run: | |
| 41 | + sudo apt-get -y install software-properties-common |
| 42 | + sudo add-apt-repository ppa:dqrobotics-dev/development |
| 43 | + sudo apt-get update |
| 44 | + sudo apt-get -y install libdqrobotics libdqrobotics-interface-json11 libdqrobotics-interface-vrep-4.7.0-2 |
| 45 | + - name: build and test ROS 2 |
| 46 | + if: ${{ matrix.ros_version == 2 }} |
| 47 | + uses: ros-tooling/[email protected] |
| 48 | + with: |
| 49 | + package-name: sas_robot_driver_kuka sas_robot_driver_ur sas_robot_kinematics |
| 50 | + target-ros2-distro: ${{ matrix.ros_distribution }} |
0 commit comments