Skip to content

Commit 5d49f88

Browse files
committed
ci: update ros2 setup step
1 parent 27e7c01 commit 5d49f88

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ros2_launch_tests.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ jobs:
3030
sudo cp -r ${{ github.workspace }}/Worlds ${{ env.WORLDS_DIR }}
3131
3232
- name: Setup ROS 2 Humble
33-
uses: ros-tooling/setup-ros@v0.6
34-
with:
35-
required-ros-distributions: humble
33+
run: |
34+
# Add the ROS 2 apt repository with updated key
35+
sudo apt-get update && sudo apt-get install -y curl gnupg lsb-release
36+
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
37+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
38+
sudo apt-get update
39+
# Install ROS 2 packages
40+
sudo apt-get install -y ros-humble-ros-base python3-colcon-common-extensions
3641
3742
- name: Install Gazebo and dependencies
3843
run: |

0 commit comments

Comments
 (0)