From 595aad2dac23f9d1c9bb03b6bb64a3b7812821e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Fr=C3=B6hlich?= Date: Mon, 5 Feb 2024 07:22:08 +0100 Subject: [PATCH] Use correct ref for scheduled workflows (#1013) (cherry picked from commit 737a45b170e79c0f6bd033b37c0def6d00ab4adf) # Conflicts: # .github/workflows/humble-debian-build.yml # .github/workflows/humble-rhel-binary-build.yml # .github/workflows/iron-debian-build.yml # .github/workflows/iron-rhel-binary-build.yml # .github/workflows/rolling-debian-build.yml # .github/workflows/rolling-rhel-binary-build.yml --- .github/workflows/humble-debian-build.yml | 31 ++++++++++++++++++ .../workflows/humble-rhel-binary-build.yml | 32 +++++++++++++++++++ .github/workflows/iron-debian-build.yml | 31 ++++++++++++++++++ .github/workflows/iron-rhel-binary-build.yml | 6 ++++ .github/workflows/rolling-debian-build.yml | 32 +++++++++++++++++++ .../workflows/rolling-rhel-binary-build.yml | 7 ++++ 6 files changed, 139 insertions(+) create mode 100644 .github/workflows/humble-debian-build.yml create mode 100644 .github/workflows/humble-rhel-binary-build.yml create mode 100644 .github/workflows/iron-debian-build.yml create mode 100644 .github/workflows/rolling-debian-build.yml diff --git a/.github/workflows/humble-debian-build.yml b/.github/workflows/humble-debian-build.yml new file mode 100644 index 0000000000..426b935fa4 --- /dev/null +++ b/.github/workflows/humble-debian-build.yml @@ -0,0 +1,31 @@ +name: Debian Humble Build +on: + workflow_dispatch: + pull_request: + branches: + - humble + schedule: + # Run every day to detect flakiness and broken dependencies + - cron: '03 1 * * *' + + +jobs: + humble_debian: + name: Humble debian build + runs-on: ubuntu-latest + env: + ROS_DISTRO: humble + container: ghcr.io/ros-controls/ros:humble-debian + steps: + - uses: actions/checkout@v4 + with: + path: src/ros2_controllers + ref: ${{ github.event_name == 'schedule' && 'humble' || '' }} + - name: Build and test + shell: bash + run: | + source /opt/ros2_ws/install/setup.bash + vcs import src < src/ros2_controllers/ros2_controllers.${{ env.ROS_DISTRO }}.repos + colcon build --packages-skip rqt_controller_manager rqt_joint_trajectory_controller + colcon test --packages-skip rqt_controller_manager rqt_joint_trajectory_controller control_msgs controller_manager_msgs + colcon test-result --verbose diff --git a/.github/workflows/humble-rhel-binary-build.yml b/.github/workflows/humble-rhel-binary-build.yml new file mode 100644 index 0000000000..933486ba50 --- /dev/null +++ b/.github/workflows/humble-rhel-binary-build.yml @@ -0,0 +1,32 @@ +name: RHEL Humble Binary Build +on: + workflow_dispatch: + pull_request: + branches: + - humble + schedule: + # Run every day to detect flakiness and broken dependencies + - cron: '03 1 * * *' + +jobs: + humble_rhel_binary: + name: Humble RHEL binary build + runs-on: ubuntu-latest + env: + ROS_DISTRO: humble + container: ghcr.io/ros-controls/ros:humble-rhel + steps: + - uses: actions/checkout@v4 + with: + path: src/ros2_controllers + ref: ${{ github.event_name == 'schedule' && 'humble' || '' }} + - name: Install dependencies + run: | + rosdep update + rosdep install -iyr --from-path src/ros2_controllers || true + - name: Build and test + run: | + source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash + colcon build --packages-skip rqt_joint_trajectory_controller + colcon test --packages-skip rqt_joint_trajectory_controller + colcon test-result --verbose diff --git a/.github/workflows/iron-debian-build.yml b/.github/workflows/iron-debian-build.yml new file mode 100644 index 0000000000..c47fbe5cd9 --- /dev/null +++ b/.github/workflows/iron-debian-build.yml @@ -0,0 +1,31 @@ +name: Debian Iron Build +on: + workflow_dispatch: + pull_request: + branches: + - iron + schedule: + # Run every day to detect flakiness and broken dependencies + - cron: '03 1 * * *' + + +jobs: + iron_debian: + name: Iron debian build + runs-on: ubuntu-latest + env: + ROS_DISTRO: iron + container: ghcr.io/ros-controls/ros:iron-debian + steps: + - uses: actions/checkout@v4 + with: + path: src/ros2_controllers + ref: ${{ github.event_name == 'schedule' && 'iron' || '' }} + - name: Build and test + shell: bash + run: | + source /opt/ros2_ws/install/setup.bash + vcs import src < src/ros2_controllers/ros2_controllers.${{ env.ROS_DISTRO }}.repos + colcon build --packages-skip rqt_controller_manager rqt_joint_trajectory_controller + colcon test --packages-skip rqt_controller_manager rqt_joint_trajectory_controller control_msgs controller_manager_msgs + colcon test-result --verbose diff --git a/.github/workflows/iron-rhel-binary-build.yml b/.github/workflows/iron-rhel-binary-build.yml index 5664d61768..87bf87f19f 100644 --- a/.github/workflows/iron-rhel-binary-build.yml +++ b/.github/workflows/iron-rhel-binary-build.yml @@ -20,7 +20,13 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_controllers +<<<<<<< HEAD - run: | +======= + ref: ${{ github.event_name == 'schedule' && 'iron' || '' }} + - name: Install dependencies + run: | +>>>>>>> 737a45b (Use correct ref for scheduled workflows (#1013)) rosdep update rosdep install -iy --from-path src/ros2_controllers source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash diff --git a/.github/workflows/rolling-debian-build.yml b/.github/workflows/rolling-debian-build.yml new file mode 100644 index 0000000000..9169494b00 --- /dev/null +++ b/.github/workflows/rolling-debian-build.yml @@ -0,0 +1,32 @@ +name: Debian Rolling Build +on: + workflow_dispatch: + pull_request: + branches: + - master + schedule: + # Run every day to detect flakiness and broken dependencies + - cron: '03 1 * * *' + + +jobs: + rolling_debian: + name: Rolling debian build + runs-on: ubuntu-latest + env: + ROS_DISTRO: rolling + container: ghcr.io/ros-controls/ros:rolling-debian + steps: + - uses: actions/checkout@v4 + with: + path: src/ros2_controllers + # default behavior is correct on master branch + # ref: ${{ github.event_name == 'schedule' && 'master' || '' }} + - name: Build and test + shell: bash + run: | + source /opt/ros2_ws/install/setup.bash + vcs import src < src/ros2_controllers/ros2_controllers.${{ env.ROS_DISTRO }}.repos + colcon build --packages-skip rqt_controller_manager rqt_joint_trajectory_controller + colcon test --packages-skip rqt_controller_manager rqt_joint_trajectory_controller + colcon test-result --verbose diff --git a/.github/workflows/rolling-rhel-binary-build.yml b/.github/workflows/rolling-rhel-binary-build.yml index 04dc58775f..30081753bc 100644 --- a/.github/workflows/rolling-rhel-binary-build.yml +++ b/.github/workflows/rolling-rhel-binary-build.yml @@ -20,7 +20,14 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_controllers +<<<<<<< HEAD - run: | +======= + # default behavior is correct on master branch + # ref: ${{ github.event_name == 'schedule' && 'master' || '' }} + - name: Install dependencies + run: | +>>>>>>> 737a45b (Use correct ref for scheduled workflows (#1013)) rosdep update rosdep install -iy --from-path src/ros2_controllers source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash