From c836576db7dd8d0d85ab3743f8837fccb807efbc Mon Sep 17 00:00:00 2001 From: Guilherme da Silva Date: Mon, 14 Jul 2025 11:31:49 -0300 Subject: [PATCH 1/4] Added workflow --- .github/workflows/industrial_ci_action.yml | 20 --------- .github/workflows/workflow.yml | 49 ++++++++++++++++++++++ README.md | 2 +- 3 files changed, 50 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/industrial_ci_action.yml create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/industrial_ci_action.yml b/.github/workflows/industrial_ci_action.yml deleted file mode 100644 index 74c008b9..00000000 --- a/.github/workflows/industrial_ci_action.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: CI -on: [push, pull_request] - -jobs: - CI: - strategy: - matrix: - env: - #- {ROS_DISTRO: melodic} - #- {ROS_DISTRO: melodic, PRERELEASE: true} - - {ROS_DISTRO: noetic} - - {ROS_DISTRO: noetic, PRERELEASE: true} - #- {ROS_DISTRO: noetic, OS_NAME: debian, OS_CODE_NAME: buster} - env: - PARALLEL_BUILDS: 4 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: 'ros-industrial/industrial_ci@master' - env: ${{ matrix.env }} diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 00000000..4dcaf9e8 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,49 @@ +name: Build ROS Package + +on: + pull_request: + branches: [main, dev] + push: + branches: [main, dev] + workflow_dispatch: + +jobs: + ros_build: + runs-on: ubuntu-latest + container: + image: ros:noetic-ros-base-focal + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install catkin tools and deps + run: | + sudo apt update + sudo apt install -y git python3-catkin-tools python3-pip + sudo apt install -y \ + ros-noetic-roscpp \ + ros-noetic-visualization-msgs \ + ros-noetic-sensor-msgs \ + ros-noetic-pcl-ros \ + ros-noetic-pcl-conversions \ + ros-noetic-nav-msgs \ + ros-noetic-std-msgs \ + ros-noetic-std-srvs \ + ros-noetic-octomap \ + ros-noetic-octomap-msgs \ + ros-noetic-octomap-ros \ + ros-noetic-dynamic-reconfigure \ + ros-noetic-nodelet + + - name: Build workspace + shell: bash + run: | + source /opt/ros/noetic/setup.bash + cp -r . ~/catkin_ws/src/ + cd ~/catkin_ws + rosdep update + rosdep install --from-paths src --ignore-src -r -y + catkin init + catkin config --extend /opt/ros/noetic + catkin build \ No newline at end of file diff --git a/README.md b/README.md index 1c8b8bf2..5a892342 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -octomap_mapping ![CI](https://github.com/OctoMap/octomap_mapping/workflows/CI/badge.svg) +octomap_mapping ![CI](https://github.com/verlab/octomap_mapping/actions/workflows/workflow.yml/badge.svg?branch=ci-cd) =============== ROS stack for mapping with OctoMap, contains the `octomap_server` package. From e81aa12d546fd0bbceebd58fd9494c33a8735477 Mon Sep 17 00:00:00 2001 From: Guilherme da Silva Date: Mon, 14 Jul 2025 11:34:41 -0300 Subject: [PATCH 2/4] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a892342..96b027d8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -octomap_mapping ![CI](https://github.com/verlab/octomap_mapping/actions/workflows/workflow.yml/badge.svg?branch=ci-cd) +octomap_mapping ![CI](https://github.com/verlab/octomap_mapping/actions/workflows/workflow.yml/badge.svg) =============== ROS stack for mapping with OctoMap, contains the `octomap_server` package. From 65c6bb26f4945c2b5a1ff289630e19e966ea03e5 Mon Sep 17 00:00:00 2001 From: Guilherme da Silva Date: Mon, 14 Jul 2025 11:42:47 -0300 Subject: [PATCH 3/4] Update workflow --- .github/workflows/workflow.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4dcaf9e8..66ae9c97 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -19,6 +19,9 @@ jobs: - name: Install catkin tools and deps run: | + export DEBIAN_FRONTEND=noninteractive + echo "keyboard-configuration keyboard-configuration/layoutcode string us" | sudo debconf-set-selections + echo "keyboard-configuration keyboard-configuration/modelcode string pc105" | sudo debconf-set-selections sudo apt update sudo apt install -y git python3-catkin-tools python3-pip sudo apt install -y \ From c7050d378406578e49010ebafdb8f458c6baa3f6 Mon Sep 17 00:00:00 2001 From: Guilherme da Silva Date: Mon, 14 Jul 2025 11:47:07 -0300 Subject: [PATCH 4/4] Create catkin dir --- .github/workflows/workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 66ae9c97..da52e364 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -43,6 +43,7 @@ jobs: shell: bash run: | source /opt/ros/noetic/setup.bash + mkdir -p ~/catkin_ws/src cp -r . ~/catkin_ws/src/ cd ~/catkin_ws rosdep update