Skip to content

Commit f7f4d01

Browse files
author
Murilo Marinho
committed
Testing on github actions
1 parent 5bc4d4d commit f7f4d01

3 files changed

Lines changed: 60 additions & 5 deletions

File tree

.devel/prebuild_ros2.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/bash
22
# Copyright (c) Murilo M. Marinho (www.murilomarinho.info)
33

4+
# SAS-RELATED THINGS (no need for recursive here)
5+
mkdir -p ~/sas_ws/src
6+
cd ~/sas_ws/src || exit 1
7+
git clone -b jazzy https://github.com/SmartArmStack/smart_arm_stack_ROS2.git sas
8+
49
# Pre-requisites
510
sudo apt-get update
611
sudo apt-get install -y dh-make dh-python python3-bloom doxygen
7-
sudo apt-get install --only-upgrade g++ cmake git
12+
sudo apt-get install --only-upgrade g++ cmake git python3-pybind11

.devel/sas_deb_builder/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ RUN bash -c '~/git/docker_recipes/dependencies/install_ros_jazzy.sh'
1313
# ROS DOMAIN SETUP
1414
RUN echo "export ROS_DOMAIN_ID=$ROS_DOMAIN_ID" >> ~/.bashrc
1515

16-
# SAS-RELATED THINGS (no need for recursive here)
17-
RUN mkdir -p ~/sas_ws/src
18-
RUN cd ~/sas_ws/src && git clone -b jazzy https://github.com/SmartArmStack/smart_arm_stack_ROS2.git sas
19-
2016
# BUILDER THINGS
2117
RUN chmod +x ~/sas_ws/src/sas/.devel/prebuild_ros2.sh
2218
RUN cd ~/sas_ws/src/sas/.devel && bash -c "./prebuild_ros2.sh"

.github/workflows/autobuilder.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# https://github.com/ros-tooling/setup-ros
2+
name: jazzy_and_rolling # On Linux, iterates on all ROS 1 and ROS 2 distributions.
3+
on: [push,workflow_dispatch]
4+
jobs:
5+
test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions.
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
ros_distribution:
10+
- jazzy
11+
- rolling
12+
13+
# Define the Docker image(s) associated with each ROS distribution.
14+
# The include syntax allows additional variables to be defined, like
15+
# docker_image in this case. See documentation:
16+
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build
17+
#
18+
# Platforms are defined in REP 3 and REP 2000:
19+
# https://ros.org/reps/rep-0003.html
20+
# https://ros.org/reps/rep-2000.html
21+
include:
22+
23+
# Jazzy Jalisco (May 2024 - May 2029)
24+
- docker_image: ubuntu:noble
25+
ros_distribution: jazzy
26+
ros_version: 2
27+
28+
# Rolling Ridley (No End-Of-Life)
29+
- docker_image: ubuntu:noble
30+
ros_distribution: rolling
31+
ros_version: 2
32+
container:
33+
image: ${{ matrix.docker_image }}
34+
steps:
35+
- name: setup ROS environment
36+
uses: ros-tooling/setup-ros@v0.7
37+
with:
38+
required-ros-distributions: ${{ matrix.ros_distribution }}
39+
- name: install DQ Robotics Devel
40+
run: |
41+
sudo apt-get -y install software-properties-common
42+
sudo add-apt-repository ppa:dqrobotics-dev/development
43+
sudo apt-get update
44+
sudo apt-get -y install libdqrobotics libdqrobotics-interface-json11 libdqrobotics-interface-coppeliasim libdqrobotics-interface-coppeliasim-zmq
45+
- name: Pre Build
46+
run: |
47+
cd .devel
48+
chmod +x prebuild_ros2.sh
49+
./prebuild_ros2.sh
50+
- name: Build
51+
run: |
52+
cd .devel
53+
chmod +x build_ros2.sh
54+
./build_ros2.sh

0 commit comments

Comments
 (0)