-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b39074a
commit c6218b9
Showing
4 changed files
with
170 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: gazebo_ros2_control CI - Humble | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- humble | ||
push: | ||
branches: | ||
- humble | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: osrf/ros:humble-desktop | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup colcon workspace | ||
id: configure | ||
run: | | ||
cd .. | ||
mkdir -p /home/ros2_ws/src | ||
cp -r gazebo_ros2_control /home/ros2_ws/src/ | ||
apt-get update && apt-get upgrade -q -y | ||
apt-get update && apt-get install -q -y --no-install-recommends \ | ||
dirmngr \ | ||
gnupg2 \ | ||
lsb-release \ | ||
python3-colcon-ros | ||
cd /home/ros2_ws/src/ | ||
rosdep update | ||
rosdep install --from-paths ./ -i -y --rosdistro humble \ | ||
--ignore-src | ||
- name: Build project | ||
id: build | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/humble/local_setup.sh | ||
colcon build --packages-up-to gazebo_ros2_control_demos | ||
- name: Run tests | ||
id: test | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/humble/local_setup.sh | ||
colcon test --event-handlers console_direct+ --packages-select gazebo_ros2_control gazebo_ros2_control_demos | ||
colcon test-result | ||
build_testing: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: osrf/ros:humble-desktop | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup colcon workspace | ||
id: configure | ||
run: | | ||
cd .. | ||
mkdir -p /home/ros2_ws/src | ||
cp -r gazebo_ros2_control /home/ros2_ws/src/ | ||
sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2-testing/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list' | ||
apt-get update && apt-get upgrade -q -y | ||
apt-get update && apt-get install -q -y --no-install-recommends \ | ||
dirmngr \ | ||
gnupg2 \ | ||
lsb-release \ | ||
python3-colcon-ros | ||
cd /home/ros2_ws/src/ | ||
rosdep update | ||
rosdep install --from-paths ./ -i -y --rosdistro humble \ | ||
--ignore-src | ||
- name: Build project | ||
id: build | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/humble/local_setup.sh | ||
colcon build --packages-up-to gazebo_ros2_control_demos | ||
- name: Run tests | ||
id: test | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/humble/local_setup.sh | ||
colcon test --event-handlers console_direct+ --packages-select gazebo_ros2_control gazebo_ros2_control_demos | ||
colcon test-result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: gazebo_ros2_control CI - iron | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- iron | ||
push: | ||
branches: | ||
- iron | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: osrf/ros:iron-desktop | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup colcon workspace | ||
id: configure | ||
run: | | ||
cd .. | ||
mkdir -p /home/ros2_ws/src | ||
cp -r gazebo_ros2_control /home/ros2_ws/src/ | ||
apt-get update && apt-get upgrade -q -y | ||
apt-get update && apt-get install -q -y --no-install-recommends \ | ||
dirmngr \ | ||
gnupg2 \ | ||
lsb-release \ | ||
python3-colcon-ros | ||
cd /home/ros2_ws/src/ | ||
rosdep update | ||
rosdep install --from-paths ./ -i -y --rosdistro iron \ | ||
--ignore-src | ||
- name: Build project | ||
id: build | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/iron/local_setup.sh | ||
colcon build --packages-up-to gazebo_ros2_control_demos | ||
- name: Run tests | ||
id: test | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/iron/local_setup.sh | ||
colcon test --event-handlers console_direct+ --packages-select gazebo_ros2_control gazebo_ros2_control_demos | ||
colcon test-result | ||
build_testing: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: osrf/ros:iron-desktop | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup colcon workspace | ||
id: configure | ||
run: | | ||
cd .. | ||
mkdir -p /home/ros2_ws/src | ||
cp -r gazebo_ros2_control /home/ros2_ws/src/ | ||
sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2-testing/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list' | ||
apt-get update && apt-get upgrade -q -y | ||
apt-get update && apt-get install -q -y --no-install-recommends \ | ||
dirmngr \ | ||
gnupg2 \ | ||
lsb-release \ | ||
python3-colcon-ros | ||
cd /home/ros2_ws/src/ | ||
rosdep update | ||
rosdep install --from-paths ./ -i -y --rosdistro iron \ | ||
--ignore-src | ||
- name: Build project | ||
id: build | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/iron/local_setup.sh | ||
colcon build --packages-up-to gazebo_ros2_control_demos | ||
- name: Run tests | ||
id: test | ||
run: | | ||
cd /home/ros2_ws/ | ||
. /opt/ros/iron/local_setup.sh | ||
colcon test --event-handlers console_direct+ --packages-select gazebo_ros2_control gazebo_ros2_control_demos | ||
colcon test-result |
5 changes: 3 additions & 2 deletions
5
.github/workflows/ci.yaml → .github/workflows/ci-rolling.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters