-
Notifications
You must be signed in to change notification settings - Fork 33
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
1 parent
658696d
commit 8119e68
Showing
1 changed file
with
23 additions
and
10 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: camera_ros build | ||
name: colcon | ||
|
||
on: | ||
pull_request: | ||
|
@@ -7,32 +7,45 @@ on: | |
|
||
jobs: | ||
build: | ||
name: camera_ros (${{ matrix.distribution }}) | ||
name: "${{ matrix.distribution }} (${{ matrix.ros }})" | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- version: 22.04 | ||
distribution: humble | ||
- version: 24.04 | ||
distribution: jazzy | ||
continue-on-error: ${{ matrix.distribution == 'rolling' }} | ||
- distribution: ubuntu | ||
version: 22.04 | ||
ros: humble | ||
|
||
- distribution: ubuntu | ||
version: 24.04 | ||
ros: jazzy | ||
|
||
- distribution: almalinux | ||
version: 9 | ||
ros: jazzy | ||
|
||
continue-on-error: ${{ matrix.ros == 'rolling' }} | ||
|
||
container: | ||
image: ubuntu:${{ matrix.version }} | ||
image: ${{ matrix.distribution }}:${{ matrix.version }} | ||
env: | ||
PIP_BREAK_SYSTEM_PACKAGES: 1 | ||
|
||
steps: | ||
- name: install ROS2 ${{ matrix.distribution }} | ||
- name: install ROS 2 | ||
uses: ros-tooling/[email protected] | ||
|
||
- name: build and test dependencies (almalinux) | ||
if: ${{ matrix.distribution == 'almalinux'}} | ||
run: | | ||
dnf -y install libasan python3-mypy | ||
- name: build and test | ||
uses: ros-tooling/[email protected] | ||
with: | ||
package-name: camera_ros | ||
target-ros2-distro: ${{ matrix.distribution }} | ||
target-ros2-distro: ${{ matrix.ros }} | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
|