Skip to content

Commit

Permalink
Add CI (#2)
Browse files Browse the repository at this point in the history
* Add CI

* Update package.xml

* Update CMakeLists.txt

* Update package.xml

* Update CI
  • Loading branch information
ToshikiNakamura0412 authored Jun 22, 2024
1 parent 04d8f7b commit c5742bc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ROS
uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: noetic
- name: Build
uses: ros-tooling/action-ros-ci@v0.3
with:
target-ros1-distro: noetic
vcs-repo-file-url: .rosinstall
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ add_compile_options(-std=c++17 -O2 -g)

find_package(catkin REQUIRED COMPONENTS
geometry_msgs
icp_matching_ros
nav_msgs
pcl_conversions
pcl_ros
roscpp
sensor_msgs
tf2_eigen
tf2_geometry_msgs
icp_matching_ros
)
find_package(PCL REQUIRED)

###################################
## catkin specific configuration ##
Expand All @@ -27,11 +26,10 @@ catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)

add_executable(pointcloud_storer_node src/pointcloud_storer.cpp)
target_link_libraries(pointcloud_storer_node ${catkin_LIBRARIES} ${PCL_LIBRARIES})
target_link_libraries(pointcloud_storer_node ${catkin_LIBRARIES})

#############
## Testing ##
Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<buildtool_depend>catkin</buildtool_depend>

<depend>geometry_msgs</depend>
<depend>icp_matching_ros</depend>
<depend>libpcl-all-dev</depend>
<depend>nav_msgs</depend>
<depend>pcl_conversions</depend>
<depend>pcl_ros</depend>
Expand All @@ -19,6 +17,8 @@
<depend>tf2_eigen</depend>
<depend>tf2_geometry_msgs</depend>

<build_depend>icp_matching_ros</build_depend>

<test_depend>rostest</test_depend>
<test_depend>roslint</test_depend>
</package>

0 comments on commit c5742bc

Please sign in to comment.