From 051deeba21040dff259600272dc2775d1f261e1b Mon Sep 17 00:00:00 2001
From: Dan Rose <dan@digilabs.io>
Date: Fri, 24 Apr 2020 20:39:08 -0500
Subject: [PATCH] Exclude other RMW from Github CI build

Since #145, the CI build of rmw_cyclonedds_cpp has been failing on Windows due to inadvertently injecting fastrtps into the build process.
fastrtps fails to build (https://github.com/eProsima/Fast-RTPS/issues/1173) causing the CI to fail.
There doesn't seem to be a better way to suppress this in action-ros-ci https://github.com/ros-tooling/action-ros-ci/issues/177

Fixes #164
---
 .github/resources/suppress_other_rmw.repos | 16 ++++++++++++++++
 .github/workflows/CI.yml                   |  8 +++++---
 2 files changed, 21 insertions(+), 3 deletions(-)
 create mode 100644 .github/resources/suppress_other_rmw.repos

diff --git a/.github/resources/suppress_other_rmw.repos b/.github/resources/suppress_other_rmw.repos
new file mode 100644
index 00000000..54d70a9b
--- /dev/null
+++ b/.github/resources/suppress_other_rmw.repos
@@ -0,0 +1,16 @@
+definitions:
+  - &colcon_ignore
+    type: zip
+    url: data:application/zip;base64,UEsDBAoAAAAAAImJmFAAAAAAAAAAAAAAAAANAAAAQ09MQ09OX0lHTk9SRVBLAQIeAwoAAAAAAImJmFAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAC0gQAAAABDT0xDT05fSUdOT1JFUEsFBgAAAAABAAEAOwAAACsAAAAAAA==
+
+repositories:
+  ros2/rosidl_typesupport_connext: *colcon_ignore
+  ros2/rmw_connext: *colcon_ignore
+
+  eProsima/Fast-CDR: *colcon_ignore
+  eProsima/Fast-RTPS: *colcon_ignore
+  ros2/rosidl_typesupport_fastrtps: *colcon_ignore
+  ros2/rmw_fastrtps: *colcon_ignore
+
+  ros2/rmw_opensplice: *colcon_ignore
+  ros2/rosidl_typesupport_opensplice: *colcon_ignore
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 9f8ed646..67a7156f 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -13,9 +13,11 @@ jobs:
       # azure ubuntu repo can be flaky so add an alternate source
       run: sed -e 's/azure.archive.ubuntu.com/us.archive.ubuntu.com/g' -e t -e d /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/nonazure.list
     - name: Acquire ROS dependencies
-      uses: ros-tooling/setup-ros@0.0.19
+      uses: ros-tooling/setup-ros@0.0.20
     - name: Build and test ROS
-      uses: ros-tooling/action-ros-ci@0.0.15
+      uses: ros-tooling/action-ros-ci@0.0.16
       with:
         package-name: rmw_cyclonedds_cpp
-        vcs-repo-file-url: https://raw.githubusercontent.com/ros2/ros2/${{ matrix.rosdistro }}/ros2.repos
+        vcs-repo-file-url: >
+          https://raw.githubusercontent.com/ros2/ros2/${{ matrix.rosdistro }}/ros2.repos
+          https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.github/resources/suppress_other_rmw.repos