docs: adopt the AI policy in all of our ros2_rust repos #66
Workflow file for this run
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: Rust Minimal | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| ros_distribution: | |
| - humble | |
| - jazzy | |
| - kilted | |
| - lyrical | |
| - rolling | |
| include: | |
| # Humble Hawksbill (May 2022 - May 2027) | |
| - docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest | |
| ros_distribution: humble | |
| ros_version: 2 | |
| # Jazzy Jalisco (May 2024 - May 2029) | |
| - docker_image: rostooling/setup-ros-docker:ubuntu-noble-ros-jazzy-ros-base-latest | |
| ros_distribution: jazzy | |
| ros_version: 2 | |
| # Kilted Kaiju (May 2025 - Dec 2026) | |
| - docker_image: rostooling/setup-ros-docker:ubuntu-noble-ros-kilted-ros-base-latest | |
| ros_distribution: kilted | |
| ros_version: 2 | |
| # Lyrical Luth (May 2026 - May 2031) | |
| - docker_image: rostooling/setup-ros-docker:ubuntu-resolute-ros-lyrical-ros-base-latest | |
| ros_distribution: lyrical | |
| ros_version: 2 | |
| # Rolling Ridley (June 2020 - Present) | |
| - docker_image: rostooling/setup-ros-docker:ubuntu-resolute-ros-rolling-ros-base-latest | |
| ros_distribution: rolling | |
| ros_version: 2 | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.ros_distribution == 'rolling' }} | |
| container: | |
| image: ${{ matrix.docker_image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup ROS environment | |
| uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: ${{ matrix.ros_distribution }} | |
| use-ros2-testing: ${{ matrix.ros_distribution == 'rolling' }} | |
| # Installing the ros metapackage (in setup-ros) leaves the packages already baked into the image | |
| # untouched. This forces an upgrade of all packages to test against the latest available versions. | |
| - name: Update environment and force upgrade new packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade -y | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@1.85 | |
| with: | |
| components: clippy, rustfmt | |
| - name: Test default features | |
| run: | | |
| . /opt/ros/${{ matrix.ros_distribution }}/setup.sh | |
| cargo test --workspace | |
| - name: Test with serde | |
| run: | | |
| . /opt/ros/${{ matrix.ros_distribution }}/setup.sh | |
| cargo test --workspace -F=serde | |
| - name: Build docs | |
| run: | | |
| . /opt/ros/${{ matrix.ros_distribution }}/setup.sh | |
| cargo doc --all-features |