Update version and descriptively name steps (#306) #2788
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: clearpath_common_ci | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" # every day at midnight | |
| jobs: | |
| clearpath_common_osrf_industrial_ci: | |
| name: Jazzy OSRF Industrial | |
| strategy: | |
| matrix: | |
| env: | |
| - {ROS_REPO: testing, ROS_DISTRO: jazzy} | |
| - {ROS_REPO: main, ROS_DISTRO: jazzy} | |
| fail-fast: false | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: 'ros-industrial/industrial_ci@master' | |
| env: ${{matrix.env}} | |
| clearpath_common_cpr_ci: | |
| name: Jazzy Clearpath Release | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:noble | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: jazzy | |
| - name: clearpath-package-server | |
| run: | | |
| sudo apt install wget | |
| wget https://packages.clearpathrobotics.com/public.key -O - | sudo apt-key add - | |
| sudo sh -c 'echo "deb https://packages.clearpathrobotics.com/stable/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/clearpath-latest.list' | |
| sudo apt-get update | |
| - uses: ros-tooling/action-ros-ci@v0.3 | |
| id: action_ros_ci_step | |
| with: | |
| target-ros2-distro: jazzy | |
| package-name: | | |
| clearpath_common | |
| clearpath_control | |
| clearpath_customization | |
| clearpath_description | |
| clearpath_diagnostics | |
| clearpath_generator_common | |
| clearpath_mounts_description | |
| clearpath_platform_description | |
| clearpath_sensors_description | |
| clearpath_common_src_ci: | |
| name: Jazzy Clearpath Source | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:noble | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: jazzy | |
| - uses: ros-tooling/action-ros-ci@v0.3 | |
| id: action_ros_ci_step | |
| with: | |
| target-ros2-distro: jazzy | |
| package-name: | | |
| clearpath_common | |
| clearpath_control | |
| clearpath_customization | |
| clearpath_description | |
| clearpath_diagnostics | |
| clearpath_generator_common | |
| clearpath_mounts_description | |
| clearpath_platform_description | |
| clearpath_sensors_description | |
| vcs-repo-file-url: dependencies.repos | |
| clearpath_common_src_head_ci: | |
| name: Jazzy Clearpath Source with Head Branch | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:noble | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "[Repositories Updater] Checkout action" | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: clearpathrobotics/repos-dep-update-action | |
| ref: 0.0.4 | |
| path: repos-dep-update-action | |
| - name: "[Repositories Updater] Install dependencies" | |
| run: | | |
| apt-get update | |
| apt-get install -y jq git python3 python3-pip | |
| python3 -m pip install yq --break-system-packages | |
| - name: "[Repositories Updater] Extract branch name" | |
| shell: bash | |
| run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
| id: extract_branch | |
| - name: "[Repositories Updater] Run action" | |
| uses: ./repos-dep-update-action/ | |
| with: | |
| branch: ${{ steps.extract_branch.outputs.branch }} | |
| input: dependencies.repos | |
| output: updated_dependencies.repos | |
| - name: "[Repositories Updater] Print updated dependencies" | |
| run: | | |
| cat updated_dependencies.repos | |
| - uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: jazzy | |
| - uses: ros-tooling/action-ros-ci@v0.3 | |
| id: action_ros_ci_step | |
| with: | |
| target-ros2-distro: jazzy | |
| package-name: | | |
| clearpath_common | |
| clearpath_control | |
| clearpath_customization | |
| clearpath_description | |
| clearpath_diagnostics | |
| clearpath_generator_common | |
| clearpath_mounts_description | |
| clearpath_platform_description | |
| clearpath_sensors_description | |
| vcs-repo-file-url: updated_dependencies.repos | |
| clearpath_common_src_base_ci: | |
| if: github.event_name == 'pull_request' | |
| name: Jazzy Clearpath Source with Base Branch | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:noble | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "[Repositories Updater] Checkout action" | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: clearpathrobotics/repos-dep-update-action | |
| ref: 0.0.4 | |
| path: repos-dep-update-action | |
| - name: "[Repositories Updater] Install dependencies" | |
| run: | | |
| apt-get update | |
| apt-get install -y jq git python3 python3-pip | |
| python3 -m pip install yq --break-system-packages | |
| - name: "[Repositories Updater] Run action" | |
| uses: ./repos-dep-update-action/ | |
| with: | |
| branch: ${{ github.event.pull_request.base.ref }} | |
| input: dependencies.repos | |
| output: updated_dependencies.repos | |
| - name: "[Repositories Updater] Print updated dependencies" | |
| run: | | |
| cat updated_dependencies.repos | |
| - uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: jazzy | |
| - uses: ros-tooling/action-ros-ci@v0.3 | |
| id: action_ros_ci_step | |
| with: | |
| target-ros2-distro: jazzy | |
| package-name: | | |
| clearpath_common | |
| clearpath_control | |
| clearpath_customization | |
| clearpath_description | |
| clearpath_diagnostics | |
| clearpath_generator_common | |
| clearpath_mounts_description | |
| clearpath_platform_description | |
| clearpath_sensors_description | |
| vcs-repo-file-url: updated_dependencies.repos |