|
| 1 | +name: rosrust_noetic |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches-ignore: |
| 6 | + - rclrs |
| 7 | + pull_request: |
| 8 | + branches-ignore: |
| 9 | + - rclrs |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +jobs: |
| 13 | + build: |
| 14 | + runs-on: ubuntu-20.04 |
| 15 | + env: |
| 16 | + ROS_CI_DESKTOP: "`lsb_release -cs`" # e.g. [trusty|xenial|...] |
| 17 | + # CI_SOURCE_PATH: $(pwd) |
| 18 | + ROSINSTALL_FILE: $CI_SOURCE_PATH/dependencies.rosinstall |
| 19 | + CATKIN_OPTIONS: $CI_SOURCE_PATH/catkin.options |
| 20 | + ROS_PARALLEL_JOBS: "-j8 -l6" |
| 21 | + # Set the python path manually to include /usr/-/python2.7/dist-packages |
| 22 | + # as this is where apt-get installs python packages. |
| 23 | + PYTHONPATH: $PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages |
| 24 | + ROS_DISTRO: noetic |
| 25 | + steps: |
| 26 | + - name: rosrust |
| 27 | + uses: actions/checkout@v1 |
| 28 | + - name: Install latest rust |
| 29 | + run: | |
| 30 | + curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y |
| 31 | + rustc --version |
| 32 | + cargo --version |
| 33 | + - name: Configure ROS for install |
| 34 | + run: | |
| 35 | + sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list" |
| 36 | + sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 |
| 37 | + sudo apt-get update -qq |
| 38 | + sudo apt-get install dpkg |
| 39 | + sudo apt-get install -y libyaml-cpp-dev |
| 40 | + - name: Install ROS basic packages |
| 41 | + run: | |
| 42 | + sudo apt-get install -y python3-catkin-pkg |
| 43 | + sudo apt-get install -y python3-catkin-tools |
| 44 | + sudo apt-get install -y python3-rosdep |
| 45 | + sudo apt-get install -y python3-wstool |
| 46 | + sudo apt-get install -y python3-osrf-pycommon |
| 47 | + sudo apt-get install -y ros-cmake-modules |
| 48 | + sudo apt-get install -y ros-$ROS_DISTRO-ros-base |
| 49 | + source /opt/ros/$ROS_DISTRO/setup.bash |
| 50 | + sudo rosdep init |
| 51 | + rosdep update # --include-eol-distros # Support EOL distros. |
| 52 | + - name: Install ROS additional packages |
| 53 | + # Does installing these mean rosrust_msg builds more messages, which is a better |
| 54 | + # check? Or does it just slow down the action? |
| 55 | + run: | |
| 56 | + sudo apt-get install -y ros-$ROS_DISTRO-actionlib |
| 57 | + sudo apt-get install -y ros-$ROS_DISTRO-actionlib-msgs |
| 58 | + sudo apt-get install -y ros-$ROS_DISTRO-camera-info-manager |
| 59 | + sudo apt-get install -y ros-$ROS_DISTRO-compressed-image-transport |
| 60 | + sudo apt-get install -y ros-$ROS_DISTRO-catkin |
| 61 | + sudo apt-get install -y ros-$ROS_DISTRO-class-loader |
| 62 | + sudo apt-get install -y ros-$ROS_DISTRO-cmake-modules |
| 63 | + sudo apt-get install -y ros-$ROS_DISTRO-cv-bridge |
| 64 | + sudo apt-get install -y ros-$ROS_DISTRO-dynamic-reconfigure |
| 65 | + sudo apt-get install -y ros-$ROS_DISTRO-ddynamic-reconfigure |
| 66 | + # Not in noetic yet |
| 67 | + # sudo apt-get install -y ros-$ROS_DISTRO-ddynamic-reconfigure-python |
| 68 | + sudo apt-get install -y ros-$ROS_DISTRO-eigen-conversions |
| 69 | + sudo apt-get install -y ros-$ROS_DISTRO-geometry-msgs |
| 70 | + sudo apt-get install -y ros-$ROS_DISTRO-genmsg |
| 71 | + sudo apt-get install -y ros-$ROS_DISTRO-image-geometry |
| 72 | + sudo apt-get install -y ros-$ROS_DISTRO-image-proc |
| 73 | + sudo apt-get install -y ros-$ROS_DISTRO-image-transport |
| 74 | + sudo apt-get install -y ros-$ROS_DISTRO-message-generation |
| 75 | + sudo apt-get install -y ros-$ROS_DISTRO-message-runtime |
| 76 | + # sudo apt-get install -y ros-$ROS_DISTRO-nodelet-core |
| 77 | + # sudo apt-get install -y ros-$ROS_DISTRO-nodelet-topic-tools |
| 78 | + # sudo apt-get install -y ros-$ROS_DISTRO-pcl-conversions |
| 79 | + # sudo apt-get install -y ros-$ROS_DISTRO-pcl-ros |
| 80 | + sudo apt-get install -y ros-$ROS_DISTRO-pluginlib |
| 81 | + sudo apt-get install -y ros-$ROS_DISTRO-roscpp |
| 82 | + sudo apt-get install -y ros-$ROS_DISTRO-roslib |
| 83 | + sudo apt-get install -y ros-$ROS_DISTRO-roslint |
| 84 | + sudo apt-get install -y ros-$ROS_DISTRO-rospy |
| 85 | + sudo apt-get install -y ros-$ROS_DISTRO-rospy-message-converter |
| 86 | + sudo apt-get install -y ros-$ROS_DISTRO-rostest |
| 87 | + sudo apt-get install -y ros-$ROS_DISTRO-sensor-msgs |
| 88 | + sudo apt-get install -y ros-$ROS_DISTRO-std-msgs |
| 89 | + sudo apt-get install -y ros-$ROS_DISTRO-tf |
| 90 | + sudo apt-get install -y ros-$ROS_DISTRO-tf-conversions |
| 91 | + sudo apt-get install -y ros-$ROS_DISTRO-tf2-geometry-msgs |
| 92 | + sudo apt-get install -y ros-$ROS_DISTRO-tf2-msgs |
| 93 | + sudo apt-get install -y ros-$ROS_DISTRO-tf2-py |
| 94 | + sudo apt-get install -y ros-$ROS_DISTRO-tf2-ros |
| 95 | + sudo apt-get install -y ros-$ROS_DISTRO-tf2-sensor-msgs |
| 96 | + - name: build |
| 97 | + run: | |
| 98 | + source /opt/ros/$ROS_DISTRO/setup.bash |
| 99 | + ROS_PACKAGE_PATH=`rospack find geometry_msgs`:`rospack find tf2_msgs`:`rospack find sensor_msgs`:`rospack find std_msgs`:`rospack find actionlib_msgs` cargo build # --verbose |
| 100 | + - name: Install ROS packages for tests |
| 101 | + run: | |
| 102 | + sudo apt-get install -y ros-$ROS_DISTRO-actionlib-tutorials |
| 103 | + sudo apt-get install -y ros-$ROS_DISTRO-roscpp-tutorials |
| 104 | + sudo apt-get install -y ros-$ROS_DISTRO-rospy-tutorials |
| 105 | + - name: test |
| 106 | + run: | |
| 107 | + source /opt/ros/$ROS_DISTRO/setup.bash |
| 108 | + ROS_PACKAGE_PATH=`rospack find geometry_msgs`:`rospack find tf2_msgs`:`rospack find sensor_msgs`:`rospack find std_msgs`:`rospack find actionlib_msgs` cargo test --features roslibrust_msg,derive,nalgebra,rayon |
0 commit comments