Skip to content

Commit

Permalink
Merge pull request #73 from christianrauch/ci_almalinux
Browse files Browse the repository at this point in the history
add AlmaLinux to CI
  • Loading branch information
christianrauch authored Dec 29, 2024
2 parents 123aeee + 8119e68 commit 3b07894
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: camera_ros build
name: colcon

on:
pull_request:
Expand All @@ -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

0 comments on commit 3b07894

Please sign in to comment.