manual build #265
Workflow file for this run
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
name: colcon | |
on: | |
push: | |
pull_request: | |
paths-ignore: | |
- "README.md" | |
jobs: | |
build: | |
name: "${{ matrix.distribution }} (${{ matrix.ros }})" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# - distribution: ubuntu | |
# version: 22.04 | |
# ros: humble | |
# - distribution: ubuntu | |
# version: 24.04 | |
# ros: jazzy | |
- distribution: almalinux | |
version: 8 | |
ros: humble | |
# - distribution: almalinux | |
# version: 9 | |
# ros: jazzy | |
continue-on-error: ${{ matrix.ros == 'rolling' }} | |
container: | |
image: ${{ matrix.distribution }}:${{ matrix.version }} | |
env: | |
PIP_BREAK_SYSTEM_PACKAGES: 1 | |
steps: | |
# act workaround | |
- if: ${{ matrix.distribution == 'ubuntu' }} | |
run: | | |
apt update | |
apt -y install nodejs | |
- if: ${{ matrix.distribution == 'almalinux'}} | |
run: | | |
dnf -y module enable nodejs:20 | |
dnf -y install nodejs | |
- name: install ROS 2 | |
uses: ros-tooling/setup-ros@v0.7 | |
- name: build and test dependencies (almalinux) | |
if: ${{ matrix.distribution == 'almalinux'}} | |
run: | | |
dnf -y install libasan python3-mypy | |
- name: build and test | |
uses: ros-tooling/action-ros-ci@v0.3 | |
if: ${{ matrix.distribution == 'ubuntu' }} | |
with: | |
package-name: camera_ros | |
target-ros2-distro: ${{ matrix.ros }} | |
- name: build and test (almalinux) | |
if: ${{ matrix.distribution == 'almalinux' }} | |
run: | | |
rosdep update | |
mkdir -p ~/camera_ws/src | |
cd ~/camera_ws/src | |
git clone ${{ github.repository }} -b ${{ github.event.pull_request.head.ref }} | |
cd ~/camera_ws | |
rosdep install --from-paths src --ignore-src -y --rosdistro humble | |
. /opt/ros/humble/setup.bash | |
colcon build |