|
6 | 6 | ci_target_ref: |
7 | 7 | required: true |
8 | 8 | type: string |
| 9 | + workflow_dispatch: |
| 10 | + inputs: |
| 11 | + name: |
| 12 | + description: "Manual trigger" |
9 | 13 |
|
10 | 14 | env: |
11 | 15 | ROS_DISTRO: rolling |
| 16 | + # Pinned to avoid a flaky api.github.com lookup for the latest release |
| 17 | + # Keep it updated with the latest version from |
| 18 | + # https://github.com/ros-infrastructure/ros-apt-source/releases |
| 19 | + # (an outdated version stops working when the ROS repository key changes) |
| 20 | + ROS_APT_SOURCE_VERSION: 1.3.0 |
12 | 21 |
|
13 | 22 | jobs: |
14 | 23 |
|
|
24 | 33 | path: src/micro_ros_setup |
25 | 34 | ref: ${{ inputs.ci_target_ref }} |
26 | 35 |
|
| 36 | + # Installing the ROS apt source beforehand makes setup-ros skip its |
| 37 | + # api.github.com lookup, which is often rate-limited on shared runners |
| 38 | + - name: Install ROS apt source |
| 39 | + run: | |
| 40 | + apt-get update && apt-get install -y ca-certificates curl |
| 41 | + curl -fL -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-testing-apt-source_${ROS_APT_SOURCE_VERSION}.resolute_all.deb |
| 42 | + apt-get install -y /tmp/ros2-apt-source.deb |
| 43 | +
|
27 | 44 | - uses: ros-tooling/setup-ros@0.7.19 |
28 | 45 | with: |
29 | 46 | # Rolling binaries for Ubuntu Resolute are only published to the |
|
74 | 91 | path: src/micro_ros_setup |
75 | 92 | ref: ${{ inputs.ci_target_ref }} |
76 | 93 |
|
| 94 | + # Installing the ROS apt source beforehand makes setup-ros skip its |
| 95 | + # api.github.com lookup, which is often rate-limited on shared runners |
| 96 | + - name: Install ROS apt source |
| 97 | + run: | |
| 98 | + apt-get update && apt-get install -y ca-certificates curl |
| 99 | + curl -fL -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-testing-apt-source_${ROS_APT_SOURCE_VERSION}.resolute_all.deb |
| 100 | + apt-get install -y /tmp/ros2-apt-source.deb |
| 101 | +
|
77 | 102 | - uses: ros-tooling/setup-ros@0.7.19 |
78 | 103 | with: |
79 | 104 | # Rolling binaries for Ubuntu Resolute are only published to the |
@@ -227,6 +252,14 @@ jobs: |
227 | 252 | path: src/micro_ros_setup |
228 | 253 | ref: ${{ inputs.ci_target_ref }} |
229 | 254 |
|
| 255 | + # Installing the ROS apt source beforehand makes setup-ros skip its |
| 256 | + # api.github.com lookup, which is often rate-limited on shared runners |
| 257 | + - name: Install ROS apt source |
| 258 | + run: | |
| 259 | + apt-get update && apt-get install -y ca-certificates curl |
| 260 | + curl -fL -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-testing-apt-source_${ROS_APT_SOURCE_VERSION}.resolute_all.deb |
| 261 | + apt-get install -y /tmp/ros2-apt-source.deb |
| 262 | +
|
230 | 263 | - uses: ros-tooling/setup-ros@0.7.19 |
231 | 264 | with: |
232 | 265 | # Rolling binaries for Ubuntu Resolute are only published to the |
|
0 commit comments