-
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.
Merge pull request #73 from christianrauch/ci_almalinux
add AlmaLinux to CI
- Loading branch information
Showing
1 changed file
with
23 additions
and
28 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,54 +7,49 @@ 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: fetch source | ||
uses: actions/checkout@v4 | ||
|
||
- name: install ROS2 ${{ matrix.distribution }} | ||
- name: install ROS 2 | ||
uses: ros-tooling/[email protected] | ||
|
||
- name: colcon lint dependencies | ||
- name: build and test dependencies (almalinux) | ||
if: ${{ matrix.distribution == 'almalinux'}} | ||
run: | | ||
apt install -y python3-venv | ||
apt install -y apt-rdepends ros-${{ matrix.distribution }}-launch-ros | ||
python3 -m venv ~/.venvs/dev | ||
. ~/.venvs/dev/bin/activate | ||
pip install lark | ||
pip install colcon-lint | ||
dnf -y install libasan python3-mypy | ||
- name: build and test | ||
uses: ros-tooling/[email protected] | ||
id: action_ros_ci | ||
with: | ||
package-name: camera_ros | ||
target-ros2-distro: ${{ matrix.distribution }} | ||
target-ros2-distro: ${{ matrix.ros }} | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"mixin": ["asan-gcc", "tsan", "coverage-gcc", "memcheck"] | ||
} | ||
} | ||
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/5d51dff38097e8c2bf46d7a5b804e65935aa7f47/index.yaml | ||
|
||
- name: colcon lint | ||
working-directory: ${{ steps.action_ros_ci.outputs.ros-workspace-directory-name }} | ||
run: | | ||
. install/setup.sh | ||
. ~/.venvs/dev/bin/activate | ||
colcon lint |