-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 }} |