gz_ros2_control CI - Rolling #1125
This file contains hidden or 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: gz_ros2_control CI - Rolling | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ rolling ] | |
| push: | |
| branches: [ rolling ] | |
| schedule: | |
| # Run every morning to detect flakiness and broken dependencies | |
| - cron: '03 5 * * MON-FRI' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ros-distro: "rolling" | |
| ros-repo-packages: "-testing" | |
| upstream-repos: "gz_ros2_control.rolling.repos" | |
| - ros-distro: "rolling" | |
| ros-repo-packages: "-testing" | |
| upstream-repos: "" | |
| # TODO(anyone): activate once the next ROS 2 rolling sync is out | |
| # - ros-distro: "rolling" | |
| # ros-repo-packages: "" | |
| # upstream-repos: "" | |
| env: | |
| ROS_DISTRO: ${{ matrix.ros-distro }} | |
| container: | |
| image: ghcr.io/ros-controls/ros:${{ matrix.ros-distro }}-ubuntu${{ matrix.ros-repo-packages }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Checkout ros2_control framework for semi-binary builds | |
| if: ${{ matrix.upstream-repos != '' }} | |
| run: vcs import --input ${{ matrix.upstream-repos }} | |
| - name: Setup colcon workspace | |
| id: configure | |
| shell: bash | |
| run: | | |
| apt-get update | |
| rosdep update | |
| rosdep install --from-paths ./ -i -y --rosdistro ${ROS_DISTRO} | |
| - name: Build project | |
| id: build | |
| run: | | |
| . /opt/ros/${ROS_DISTRO}/local_setup.sh | |
| colcon build --packages-up-to gz_ros2_control_demos gz_ros2_control_tests | |
| - name: Run tests | |
| id: test | |
| run: | | |
| . /opt/ros/${ROS_DISTRO}/local_setup.sh | |
| colcon test --event-handlers console_direct+ --packages-select gz_ros2_control gz_ros2_control_demos gz_ros2_control_tests | |
| colcon test-result |