Skip to content

Commit 6ea3539

Browse files
mrpollobkueng
andauthored
[backport] v1.16 fix gazebo install on ROS integration tests (#25344)
* ci: update rosdistro apt keys (#25060) Signed-off-by: Ramon Roche <[email protected]> * ci: use release/1.16 branch for px4-ros2-interface-lib integration tests --------- Signed-off-by: Ramon Roche <[email protected]> Co-authored-by: Beat Küng <[email protected]>
1 parent 7fc5393 commit 6ea3539

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ros_integration_tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ on:
1111
- 'main'
1212
paths-ignore:
1313
- 'docs/**'
14-
- '.github/**'
1514
pull_request:
1615
branches:
1716
- '**'
1817
paths-ignore:
1918
- 'docs/**'
20-
- '.github/**'
2119

2220
jobs:
2321
build:
@@ -33,6 +31,12 @@ jobs:
3331
- name: Git Ownership Workaround
3432
run: git config --system --add safe.directory '*'
3533

34+
- name: Update ROS Keys
35+
run: |
36+
sudo rm /etc/apt/sources.list.d/ros2.list && \
37+
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
38+
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
39+
3640
- name: Install gazebo
3741
run: |
3842
apt update && apt install -y gazebo11 libgazebo11-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly libgstreamer-plugins-base1.0-dev
@@ -81,7 +85,7 @@ jobs:
8185
. /opt/ros/galactic/setup.bash
8286
mkdir -p /opt/px4_ws/src
8387
cd /opt/px4_ws/src
84-
git clone --recursive https://github.com/Auterion/px4-ros2-interface-lib.git
88+
git clone --recursive --branch release/1.16 https://github.com/Auterion/px4-ros2-interface-lib.git
8589
cd ..
8690
# Copy messages to ROS workspace
8791
"${PX4_DIR}/Tools/copy_to_ros_ws.sh" "$(pwd)"

0 commit comments

Comments
 (0)