add/update workflows, drop s6v2

This commit is contained in:
aptalca
2023-04-13 14:39:59 -04:00
parent 6d34bc97d7
commit eeeb5ee947
7 changed files with 60 additions and 76 deletions
-13
View File
@@ -1,13 +0,0 @@
#!/usr/bin/with-contenv bash
echo "**** installing ros2 dev environment ****"
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
source /etc/lsb-release
if [ ! -f "/etc/apt/sources.list.d/ros2.list" ]; then
curl -sL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | apt-key add - && \
echo "deb http://packages.ros.org/ros2/ubuntu ${DISTRIB_CODENAME} main" \
> /etc/apt/sources.list.d/ros2.list
fi
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/with-contenv bash
apt-get update
-9
View File
@@ -1,9 +0,0 @@
#!/usr/bin/with-contenv bash
echo "**** Installing ros2 and ros dev tools"
apt-get install -y \
ros-humble-ros-base \
ros-dev-tools
echo "**** Automatically sourcing ROS2 ****"
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /config/.bashrc
@@ -11,8 +11,10 @@ if [ ! -f "/etc/apt/sources.list.d/ros2.list" ]; then
echo "ros-humble-ros-base ros-dev-tools" >> /mod-repo-packages-to-install.list
echo "**** Automatically sourcing ROS2 ****"
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /config/.bashrc
if ! grep -q '/opt/ros/humble/setup.bash' /config/.bashrc; then
echo "**** Automatically sourcing ROS2 ****"
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /config/.bashrc
fi
else
echo "**** ROS2 packages already installed, skipping ****"
fi