From 566f783851232b411057f1c3e3358c1392fa3bb7 Mon Sep 17 00:00:00 2001 From: Ryan <25047695+Ryanf55@users.noreply.github.com> Date: Sun, 1 Dec 2024 18:13:07 -0700 Subject: [PATCH] Add industrial CI (#492) Add industrial CI * Bring nav2 in from source on rolling * Skip rosdep keys in nav2 that don't resolve Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com> (cherry picked from commit c31384333408870e7a7bf685b268703b856a2770) --- .github/workflows/industrial-ci.yaml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/industrial-ci.yaml diff --git a/.github/workflows/industrial-ci.yaml b/.github/workflows/industrial-ci.yaml new file mode 100644 index 00000000..9dcea912 --- /dev/null +++ b/.github/workflows/industrial-ci.yaml @@ -0,0 +1,39 @@ +name: Industrial CI + +# Use industrial CI to ensure our packages express all dependencies. +# Attempts to find issues like #490 before merge. +# https://github.com/ros-industrial/industrial_ci?tab=readme-ov-file#for-github-actions + +on: + push: + branches: + - 'rolling' + - 'jazzy' + - 'iron' + - 'humble' + pull_request: + branches: + - '*' + +jobs: + industrial_ci: + strategy: + matrix: + env: + - {ROS_DISTRO: rolling, ROS_REPO: testing} + - {ROS_DISTRO: rolling, ROS_REPO: main} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # nav2 on rolling is not available with binaries + - name: Set UPSTREAM_WORKSPACE to bring in nav2 as a source dependency + if: ${{ matrix.env.ROS_DISTRO == 'rolling' }} + run: echo "UPSTREAM_WORKSPACE=https://raw.githubusercontent.com/ANYbotics/grid_map/rolling/tools/ros2_dependencies.repos" >> $GITHUB_ENV + # We duplicate NAV2's key skipping because I doubt they intend this bespoke file to be used by other CI jobs: + # https://github.com/ros-navigation/navigation2/blob/main/tools/skip_keys.txt + # It also is out of date, so grid_map is just going to skip keys we are sure don't work. + - name: set ROSDEP_SKIP_KEYS to skip nav2 keys + if: ${{ matrix.env.ROS_DISTRO == 'rolling' }} + run: echo "ROSDEP_SKIP_KEYS=slam_toolbox" >> $GITHUB_ENV + - uses: 'ros-industrial/industrial_ci@master' + env: ${{matrix.env}}