From a8e21fcebb9da7df1204d74ce3f49ce5ac56e4c1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 23 Jan 2024 14:31:48 +0000 Subject: [PATCH] [RHEL-CI] Rename workflow and don't run on push (backport #1326) (#1327) --- .../workflows/humble-rhel-binary-build.yml | 17 +++++----- .github/workflows/iron-rhel-binary-build.yml | 32 +++++++++++++++++++ .../workflows/rolling-rhel-binary-build.yml | 17 +++++----- 3 files changed, 50 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/iron-rhel-binary-build.yml diff --git a/.github/workflows/humble-rhel-binary-build.yml b/.github/workflows/humble-rhel-binary-build.yml index b9ef044bfd..ed37092520 100644 --- a/.github/workflows/humble-rhel-binary-build.yml +++ b/.github/workflows/humble-rhel-binary-build.yml @@ -1,9 +1,6 @@ -name: Humble RHEL Binary Build +name: RHEL Humble Binary Build on: workflow_dispatch: - push: - branches: - - humble pull_request: branches: - humble @@ -22,9 +19,13 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control - - run: | + - name: Install dependencies + run: | rosdep update - rosdep install -iy --from-path src/ros2_control + rosdep install -iyr --from-path src/ros2_control || true + - name: Build and test + run: | source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash - colcon build - colcon test + colcon build --packages-skip rqt_controller_manager + colcon test --packages-skip rqt_controller_manager ros2controlcli + colcon test-result --verbose diff --git a/.github/workflows/iron-rhel-binary-build.yml b/.github/workflows/iron-rhel-binary-build.yml new file mode 100644 index 0000000000..fc48bd80ea --- /dev/null +++ b/.github/workflows/iron-rhel-binary-build.yml @@ -0,0 +1,32 @@ +name: RHEL Iron Binary Build +on: + workflow_dispatch: + pull_request: + branches: + - iron + schedule: + # Run every day to detect flakiness and broken dependencies + - cron: '03 1 * * *' + + +jobs: + iron_rhel_binary: + name: Iron RHEL binary build + runs-on: ubuntu-latest + env: + ROS_DISTRO: iron + container: ghcr.io/ros-controls/ros:iron-rhel + steps: + - uses: actions/checkout@v4 + with: + path: src/ros2_control + - name: Install dependencies + run: | + rosdep update + rosdep install -iyr --from-path src/ros2_control || true + - name: Build and test + run: | + source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash + colcon build --packages-skip rqt_controller_manager + colcon test --packages-skip rqt_controller_manager ros2controlcli + colcon test-result --verbose diff --git a/.github/workflows/rolling-rhel-binary-build.yml b/.github/workflows/rolling-rhel-binary-build.yml index ab7067e121..06a5411c24 100644 --- a/.github/workflows/rolling-rhel-binary-build.yml +++ b/.github/workflows/rolling-rhel-binary-build.yml @@ -1,9 +1,6 @@ -name: Rolling RHEL Binary Build +name: RHEL Rolling Binary Build on: workflow_dispatch: - push: - branches: - - master pull_request: branches: - master @@ -23,9 +20,13 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control - - run: | + - name: Install dependencies + run: | rosdep update - rosdep install -iy --from-path src/ros2_control + rosdep install -iyr --from-path src/ros2_control || true + - name: Build and test + run: | source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash - colcon build - colcon test + colcon build --packages-skip rqt_controller_manager + colcon test --packages-skip rqt_controller_manager ros2controlcli + colcon test-result --verbose