diff --git a/.github/workflows/main.yml b/.github/workflows/humble.yml similarity index 95% rename from .github/workflows/main.yml rename to .github/workflows/humble.yml index ecbfd17..ec17a05 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/humble.yml @@ -4,7 +4,7 @@ on: pull_request: push: branches: - - main + - humble jobs: Build: @@ -25,7 +25,7 @@ jobs: - name: Run Tests uses: ros-tooling/action-ros-ci@0.3.5 with: - ref: main + ref: humble target-ros2-distro: humble import-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/rolling.yml b/.github/workflows/rolling.yml new file mode 100644 index 0000000..f956440 --- /dev/null +++ b/.github/workflows/rolling.yml @@ -0,0 +1,40 @@ +name: Ubuntu 22.04 Rolling Build + +on: + pull_request: + push: + branches: + - iron + +jobs: + Build: + runs-on: self-hosted + container: + image: osrf/ros:rolling-desktop-full-jammy + + steps: + - name: Update + run: apt update + + - name: Install PIP + run: apt install -y python3-pip lcov + + - name: Install colcon tools + run: python3 -m pip install colcon-lcov-result colcon-coveragepy-result + + - name: Checkout + uses: actions/checkout@v2 + + - name: Run Tests + uses: ros-tooling/action-ros-ci@0.3.5 + with: + target-ros2-distro: iron + import-token: ${{ secrets.GITHUB_TOKEN }} + vcs-repo-file-url: "${{ github.workspace }}/iron.repos" + + - name: Upload Logs + uses: actions/upload-artifact@v1 + with: + name: colcon-logs + path: ros_ws/log + if: always() diff --git a/README.md b/README.md index fbf2f13..5ae226f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # ROS2 Native Adapters -[![Ubuntu 22.04 Humble Build](https://github.com/roncapat/ros2_native_adapters/actions/workflows/main.yml/badge.svg)](https://github.com/roncapat/ros2_native_adapters/actions/workflows/main.yml) +[![Ubuntu 22.04 Humble Build](https://github.com/roncapat/ros2_native_adapters/actions/workflows/humble.yml/badge.svg)](https://github.com/roncapat/ros2_native_adapters/actions/workflows/humble.yml) [![Ubuntu 22.04 Iron Build](https://github.com/roncapat/ros2_native_adapters/actions/workflows/iron.yml/badge.svg)](https://github.com/roncapat/ros2_native_adapters/actions/workflows/iron.yml) +[![Ubuntu 22.04 Rolling Build](https://github.com/roncapat/ros2_native_adapters/actions/workflows/rolling.yml/badge.svg?branch=iron)](https://github.com/roncapat/ros2_native_adapters/actions/workflows/rolling.yml) This package provides the following ROS2 type adaptations: