Skip to content

Commit

Permalink
Update ros2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe authored Jun 27, 2024
1 parent dc0666c commit 1987529
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/ros2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ jobs:
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
name: Build on ros2 ${{ matrix.ros_distro }} and ${{ matrix.os }}
name: Build on ros2 ${{ matrix.ros_distro }} and ${{ matrix.ubuntu_distro }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
ros_distro: [humble, jazzy, rolling]
ros_distro: [humble, jazzy]
include:
- ros_distro: 'humble'
os: ubuntu-22.04
ubuntu_distro: jammy
- ros_distro: 'jazzy'
os: ubuntu-24.04
- ros_distro: 'rolling'
os: ubuntu-24.04

ubuntu_distro: noble
fail-fast: false
container:
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-desktop-latest
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distro }}
Expand All @@ -40,19 +41,7 @@ jobs:
sudo apt-get update
sudo apt-get -y install ros-${{ matrix.ros_distro }}-cv-bridge qtbase5-dev
- name: Setup ros2 workspace
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
mkdir -p ${{github.workspace}}/ros2_ws/src
cd ${{github.workspace}}/ros2_ws
colcon build
- uses: actions/checkout@v2
- uses: ros-tooling/[email protected]
with:
path: 'ros2_ws/src/find_object_2d'

- name: colcon build
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
cd ${{github.workspace}}/ros2_ws
colcon build --event-handlers console_direct+
package-name: find_object_2d
target-ros2-distro: ${{ matrix.ros_distro }}

0 comments on commit 1987529

Please sign in to comment.