Skip to content

Commit

Permalink
CI to compile ros2 packages (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene authored Nov 29, 2023
2 parents bfd7bed + be5740f commit 9bab515
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI workflow

on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
path: src/study-moveit

- name: Build Docker Image
uses: docker/build-push-action@v2
with:
tags: study-moveit:latest
file: Dockerfile
push: false

- name: Build ros2 packages
uses: addnab/docker-run-action@v3
with:
image: study-moveit:latest
options: -v ${{github.workspace}}/:/ros2_ws/
run: |
cd ros2_ws
. /opt/ros/humble/setup.sh
if colcon build; then
. install/setup.sh
else
echo "Compilation failed"
exit 1
fi
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.vscode/
*/.setup_assistant
log/
install/
build/
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ghcr.io/icub-tech-iit/docker-deployment-images/cd_superbuild-ros2:master-unstable_sources

WORKDIR /

RUN apt update && apt install -y \
ros-humble-gazebo-msgs \
ros-humble-gazebo-ros \
ros-humble-rmw-cyclonedds-cpp \
ros-humble-ament-cmake-clang-format \
ros-humble-hardware-interface \
ros-humble-controller-manager \
ros-humble-moveit \
ros-humble-moveit-visual-tools \
ros-humble-moveit-ros-planning-interface

RUN echo 'export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp' >> /usr/local/bin/setup_robotology_tdd.sh

0 comments on commit 9bab515

Please sign in to comment.