mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
ci: added test for building on humble
This commit is contained in:
18
.github/workflows/ros-ci.yml
vendored
18
.github/workflows/ros-ci.yml
vendored
@@ -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"
|
||||
Reference in New Issue
Block a user