ROS2 #214
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: ROS2 | |
on: | |
push: | |
branches-ignore: | |
- '*' | |
workflow_dispatch: | |
inputs: | |
docker-ros-git-ref: | |
description: "docker-ros Git reference" | |
default: main | |
jobs: | |
basic: | |
name: basic | |
runs-on: ubuntu-latest | |
steps: | |
- name: docker-ros | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: jenseng/dynamic-uses@v1 | |
with: | |
uses: ika-rwth-aachen/docker-ros@${{ github.event.inputs.docker-ros-git-ref }} | |
with: '{ "base-image": "rwthika/ros2:latest", "command": "ros2 topic list", "platform": "amd64", "target": "dev,run", "build-context": "ros2", "image-tag": "ros2", "enable-industrial-ci": "true"}' | |
- name: docker-ros | |
if: ${{ github.event_name == 'push' }} | |
uses: ika-rwth-aachen/docker-ros@main | |
with: | |
base-image: rwthika/ros2:latest | |
command: ros2 topic list | |
platform: amd64 | |
target: dev,run | |
build-context: ros2 | |
image-tag: ros2 | |
enable-industrial-ci: true | |
advanced: | |
name: advanced | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [dev, run] | |
platform: [amd64, arm64] | |
steps: | |
- name: docker-ros | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: jenseng/dynamic-uses@v1 | |
with: | |
uses: ika-rwth-aachen/docker-ros@${{ github.event.inputs.docker-ros-git-ref }} | |
with: '{ "base-image": "rwthika/ros2:latest", "command": "ros2 topic list", "platform": "${{ matrix.platform }}", "target": "${{ matrix.target }}", "build-context": "ros2", "image-tag": "ros2", "enable-industrial-ci": "true", "enable-singlearch-push": "true"}' | |
- name: docker-ros | |
if: ${{ github.event_name == 'push' }} | |
uses: ika-rwth-aachen/docker-ros@main | |
with: | |
base-image: rwthika/ros2:latest | |
command: ros2 topic list | |
platform: ${{ matrix.platform }} | |
target: ${{ matrix.target }} | |
build-context: ros2 | |
image-tag: ros2 | |
enable-industrial-ci: true | |
enable-singlearch-push: true |