[CI] Improvements and Cleanups #1471
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RHEL Rolling Binary Build | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
# Run every day to detect flakiness and broken dependencies | |
- cron: '03 1 * * *' | |
jobs: | |
rolling_rhel_binary: | |
name: Rolling RHEL binary build | |
runs-on: ubuntu-latest | |
env: | |
ROS_DISTRO: rolling | |
skip-packages: rqt_controller_manager | |
container: ghcr.io/ros-controls/ros:rolling-rhel | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: src/ros2_control | |
# default behavior is correct on master branch | |
# ref: ${{ github.event_name == 'schedule' && 'master' || '' }} | |
- name: Install dependencies | |
run: | | |
source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash | |
source /opt/ros2_ws/install/local_setup.bash | |
rosdep update | |
rosdep install -iyr --from-path src/ros2_control || true | |
- name: Build workspace | |
# source also underlay workspace with generate_parameter_library on rhel9 | |
run: | | |
source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash | |
source /opt/ros2_ws/install/local_setup.bash | |
colcon build --packages-up-to $(colcon list --paths src/ros2_control/* --names-only) --packages-skip ${{ env.skip-packages }} | |
- name: Test workspace | |
shell: bash | |
continue-on-error: true | |
run: | | |
source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash | |
source /opt/ros2_ws/install/local_setup.bash | |
colcon test --packages-select $(colcon list --paths src/ros2_control/* --names-only) --packages-skip ${{ env.skip-packages }} | |
colcon test-result --verbose |