Skip to content

Bandamo try to compile ROS2 for 7Robot/nav_node #20

Bandamo try to compile ROS2 for 7Robot/nav_node

Bandamo try to compile ROS2 for 7Robot/nav_node #20

name: Compile ROS2
run-name: ${{ github.actor }} try to compile ROS2 for ${{ github.repository }}
on: [push]
jobs:
Build_packages:
runs-on: ros
steps:
- run: echo "Checking out the repository"
- uses: actions/checkout@v4
- run: echo "Removing old files..."
- run: rm -rf ../../ROS2_main_dir/src/$(ls ..)
- run: echo "Copy files..."
- run: cp -r ../$(ls ..) ../../ROS2_main_dir/src
- run: REPO_NAME=$(ls ..) && source /opt/ros/humble/setup.sh && cd ../../ROS2_main_dir/ && colcon build --packages-up-to $REPO_NAME