From 80a80fc4743e7ab396ecc069ccdb0240bf4a71fd Mon Sep 17 00:00:00 2001 From: Ruixiang Du Date: Thu, 16 Mar 2023 13:43:12 +0800 Subject: [PATCH] ci: added test for building on humble --- .github/workflows/ros-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 42b1990..8ea8600 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -14,7 +14,6 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build-melodic: # The type of runner that the job will run on runs-on: ubuntu-18.04 @@ -31,3 +30,20 @@ jobs: run: cd /catkin_ws/src && git clone https://github.com/westonrobot/ugv_sdk.git - name: Run catkin_make run: cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make" + + build-humble: + # The type of runner that the job will run on + runs-on: ubuntu-22.04 + container: + image: ros:humble + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y libasio-dev + - name: Create colcon workspace + run: mkdir -p /ros2_ws/src && cd /ros2_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash" + - name: Copy code to colcon workspace + run: cd /ros2_ws/src && git clone https://github.com/westonrobot/ugv_sdk.git + - name: Run colcon build + run: cd /ros2_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; colcon build" \ No newline at end of file