Skip to content

Commit

Permalink
Update ros2_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamGawande191 authored Dec 20, 2023
1 parent 2a1fcf0 commit 7150494
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ros2_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,29 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Import ROS2 apt key
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y curl gnupg lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o ros.key
sudo apt-key add ros.key
- name: Install ROS2 Humble dependencies
- name: Import ROS2 apt key
run: |
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo apt-key add -
- name: Setup sources.list
run: |
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
- name: Install ROS2 Humble dependencies
run: |
sudo apt update
sudo apt install -y python3-colcon-common-extensions python3-rosdep python3-vcstool
sudo rosdep init
- name: Initialize rosdep
run: |
if [ ! -f /etc/ros/rosdep/sources.list.d/20-default.list ]; then
sudo rosdep init
fi
rosdep update
- name: Install package dependencies
Expand Down

0 comments on commit 7150494

Please sign in to comment.