Add the ability to configure ROS middleware upon build (#409) #691
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: ouster-ros | |
on: | |
push: | |
branches: | |
- ros2 | |
pull_request: | |
branches: | |
- ros2 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ros_distro: | |
- rolling | |
- humble | |
- iron | |
- jazzy | |
rmw_imp: | |
- rmw_fastrtps_cpp | |
- rmw_cyclonedds_cpp | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build the Docker image | |
run: | | |
docker build . \ | |
--build-arg ROS_DISTRO=${{ matrix.ros_distro }} \ | |
--build-arg RMW_IMPLEMENTATION=${{ matrix.rmw_imp }} \ | |
--file Dockerfile \ | |
--tag ouster-ros-${{ matrix.ros_distro }}:$(date +%s) |