Skip to content

Commit

Permalink
Merge pull request #21 from clydemcqueen/clyde_ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
clydemcqueen authored Nov 11, 2021
2 parents 09953ac + 36e326c commit c4db136
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ROS2 CI

on:
pull_request:
push:
branches:
- 'main'

jobs:
test_environment:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
ros_distribution:
- foxy
- galactic
- rolling
include:
# Foxy Fitzroy (June 2020 - May 2023)
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-latest
ros_distribution: foxy
ros_version: 2
# Galactic Geochelone (May 2021 - November 2022)
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
ros_distribution: galactic
ros_version: 2
# Rolling Ridley (June 2020 - Present)
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-rolling-ros-base-latest
ros_distribution: rolling
ros_version: 2
container:
image: ${{matrix.docker_image}}
steps:
- name: setup directories
run: mkdir -p ros_ws/src
- name: checkout
uses: actions/checkout@v2
with:
path: ros_ws/src
- name: build and test
uses: ros-tooling/action-ros-ci@master
with:
package-name: gscam2
target-ros2-distro: ${{matrix.ros_distribution}}
vcs-repo-file-url: "https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/workspace.repos"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea/
cmake-build-debug/
.cmake-build-debug/
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif ()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# Emulate Colcon in CLion
if ($ENV{CLION_IDE})
message(STATUS "Running inside CLion")
Expand Down
2 changes: 1 addition & 1 deletion include/gscam2/gscam_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace gscam2
class GSCamNode : public rclcpp::Node
{
// Hide implementation
struct impl;
class impl;
std::unique_ptr<impl> pImpl_;

void validate_parameters();
Expand Down
5 changes: 5 additions & 0 deletions workspace.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repositories:
ptrmu/ros2_shared:
type: git
url: https://github.com/ptrmu/ros2_shared
version: master

0 comments on commit c4db136

Please sign in to comment.