File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed
Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 8181 - name : Checkout code
8282 uses : actions/checkout@v4
8383
84- - name : Setup ROS repository
85- run : |
86- apt-get update -qq
87- apt-get install -y curl gnupg lsb-release
88- curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
89- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2.list
90- apt-get update -qq
91- shell : bash
92- env :
93- DEBIAN_FRONTEND : noninteractive
94-
9584 - name : Build Debian packages
9685 run : |
9786 chmod +x scripts/build_debian_packages.sh
Original file line number Diff line number Diff line change @@ -82,9 +82,23 @@ if [ ! -f "/.dockerenv" ] && [ ! -f "/run/.containerenv" ]; then
8282 read -r
8383fi
8484
85+ # Setup ROS repository if not already configured
86+ echo " Setting up ROS repository..."
87+ export DEBIAN_FRONTEND=noninteractive
88+ apt-get update -qq
89+ apt-get install -y curl gnupg lsb-release
90+
91+ if [ ! -f " /etc/apt/sources.list.d/ros2.list" ]; then
92+ echo " Adding ROS 2 apt repository..."
93+ curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
94+ echo " deb [arch=$( dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $( lsb_release -cs) main" > /etc/apt/sources.list.d/ros2.list
95+ apt-get update -qq
96+ else
97+ echo " ROS 2 repository already configured"
98+ fi
99+
85100# Install dependencies
86101echo " Installing build dependencies..."
87- apt-get update -qq
88102
89103# Check if we need --break-system-packages for pip
90104USE_BREAK_SYSTEM_PACKAGES=" "
@@ -93,8 +107,7 @@ if [[ "$ROS_DISTRO" == "jazzy" || "$ROS_DISTRO" == "kilted" || "$ROS_DISTRO" ==
93107fi
94108
95109# Install system dependencies
96- export DEBIAN_FRONTEND=noninteractive
97- apt-get install -y build-essential python3-pip python3-bloom python3-rosdep git lsb-release devscripts debhelper fakeroot python3-colcon-common-extensions cmake
110+ apt-get install -y build-essential python3-pip python3-bloom python3-rosdep git devscripts debhelper fakeroot python3-colcon-common-extensions cmake
98111
99112# Install Python dependencies
100113if [ -f " requirements.txt" ]; then
You can’t perform that action at this time.
0 commit comments