Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Implement GitHub action testing and remove Dockerfile manual procedure
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Mar 6, 2024
1 parent 9a79d00 commit e31f5a3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 60 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: drake colcon ws

on:
push:

jobs:
build_testing:
runs-on: ubuntu-22.04
steps:
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: rolling
- uses: ros-tooling/[email protected]
with:
package-name: drake
target-ros2-distro: rolling
skip-tests: true
colcon-defaults: |
{
"build": {
"cmake-target": "install",
"merge-install": true
}
}
- name: checkout
uses: actions/checkout@v4
with:
repository: RobotLocomotion/drake-external-examples
ref: main
path: ros_ws/src
- name: build tests
shell: bash
working-directory: ros_ws
run: |
# gflags is required by drake_cmake_installed
sudo apt-get update && sudo apt-get install -y libgflags-dev
. /opt/ros/rolling/setup.bash
. install/setup.bash
colcon build --merge-install --packages-select drake_cmake_installed drake_cmake_installed_apt drake_ament_cmake_installed --event-handlers console_direct+
49 changes: 0 additions & 49 deletions Dockerfile.cmake_dpkg_flags

This file was deleted.

11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,3 @@ The repository defines a ROS package named drake, which facilitates the
download of the Drake sources from its official repository. Subsequently, it
invokes the CMake build system within these sources to facilitate the
generation of a system installation for the toolbox.

# Docker testing

The `Dockerfile.cmake_dpkg_flags` can be used to simulate the build that the
ros_buildfarm will perform using calling the CMake building system with the
dpkg-buildflags typically used in the ROS build environment. To test it:

```
docker build -f Dockefile.cmake_dpkg_flags -t ros_drake_vendor_cmake .
docker run -i -t ros_drake_vendor_cmake /bin/bash
```

0 comments on commit e31f5a3

Please sign in to comment.