From e2e2981632677e591c0dab4e96e3ba0d720849f7 Mon Sep 17 00:00:00 2001 From: Davide Nardi <93198865+Hydran00@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:41:47 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7ebd77b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Humble CI + +on: + push: + branches: + - main + +jobs: + humble_source: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - uses: ros-tooling/setup-ros@v0.7 + with: + required-ros-distributions: humble + - run: sudo apt-get install -y ros-humble-pcl-* + - run: | + # Create the workspace and move the repository to src + mkdir -p ~/ros2_ws/src + mv $(ls -d * | grep -v ros2_ws) ~/ros2_ws/src + cd ~/ros2_ws + # Install and initialize rosdep + sudo apt-get update + # sudo apt-get install -y python3-rosdep + sudo rosdep init + rosdep update + - run: | + cd ~/ros2_ws + rosdep install --from-paths src -i -r -y + - uses: ros-tooling/action-ros-ci@v0.3 + with: + package-name: kuka_package + target-ros2-distro: humble