Skip to content

Commit 4cd9d00

Browse files
authored
Fix Setup new ros2 apt source step in BuildAndRun.yaml
1 parent 66ba6e0 commit 4cd9d00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/BuildAndRun.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ jobs:
3535
rosdistro: [humble]
3636
runs_on: [ubuntu-22.04, ubuntu-22.04-arm]
3737
cmake_build_type: [RelWithDebInfo, Release] # Debug build type is currently unavailable. @TODO Fix problem and add Debug build.
38-
steps:
38+
steps:
3939
- name: Delete old ros2 apt source
4040
run: |
4141
rm /etc/apt/sources.list.d/ros2-latest.list
4242
rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
4343
4444
- name: Setup new ros2 apt source
4545
run: |
46+
sudo apt install curl
4647
export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
4748
curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb"
4849
sudo apt install /tmp/ros2-apt-source.deb

0 commit comments

Comments
 (0)