mirror of
https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
synced 2025-09-15 13:08:35 +08:00
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
# The name of the workflow
|
|
name: CI
|
|
|
|
# Specifies the events that trigger the workflow
|
|
on:
|
|
push:
|
|
branches: [ main, humble ]
|
|
pull_request:
|
|
branches: [ main, humble ]
|
|
|
|
# Defines a set of jobs to be run as part of the workflow
|
|
jobs:
|
|
# The name of the job
|
|
ROS_CI:
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
ros_distribution:
|
|
- humble
|
|
# - jazzy
|
|
# - rolling
|
|
include:
|
|
# ROS 2 Humble Hawksbill
|
|
- docker_image: ubuntu:jammy
|
|
ros_distribution: humble
|
|
ros_version: 2
|
|
# ROS 2 Jazzy Jalisco
|
|
# - docker_image: ubuntu:noble
|
|
# ros_distribution: jazzy
|
|
# ros_version: 2
|
|
# ROS 2 Rolling Ridley
|
|
# - docker_image: ubuntu:noble
|
|
# ros_distribution: rolling
|
|
# ros_version: 2
|
|
container:
|
|
image: ${{ matrix.docker_image }}
|
|
steps:
|
|
- name: Setup workspace
|
|
run: mkdir -p ros_ws/src
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: ros_ws/src
|
|
|
|
- name: Setup ROS environment
|
|
uses: ros-tooling/setup-ros@v0.7
|
|
with:
|
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
|
|
|
- name: Build and Test
|
|
uses: ros-tooling/action-ros-ci@v0.3
|
|
with:
|
|
target-ros2-distro: ${{ matrix.ros_distribution }}
|
|
vcs-repo-file-url: "https://raw.githubusercontent.com/ROBOTIS-GIT/turtlebot3_simulations/main/turtlebot3_simulations_ci.repos"
|
|
package-name: |
|
|
turtlebot3_fake_node
|
|
turtlebot3_gazebo
|
|
turtlebot3_simulations
|