ci: added test for building on humble

This commit is contained in:
Ruixiang Du
2023-03-16 13:43:12 +08:00
parent ce8ff2b8ab
commit 80a80fc474

View File

@@ -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"