Merge branch 'noetic' of github.com:rickstaa/ros-gazebo-gym-ws into n… #188
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: ROS Test | |
on: | |
push: | |
branches: | |
- noetic | |
pull_request: | |
jobs: | |
ROS-test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Prepare | |
run: | | |
mkdir -p ${{github.workspace}}/src | |
mkdir -p ${{github.workspace}}/devel | |
- uses: docker/setup-buildx-action@v3 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: src | |
submodules: true | |
- name: Build Docker Image | |
uses: docker/build-push-action@v5 | |
with: | |
tags: ros_gazebo_gym:noetic | |
file: .ci/Dockerfile.noetic | |
push: false | |
load: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Compile ROS package with Catkin Tools | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: ros_gazebo_gym:noetic | |
options: -v ${{github.workspace}}/src:/src/ -v ${{github.workspace}}/devel:/devel/ | |
run: | | |
catkin config --init --extend /opt/ros/noetic | |
catkin build --interleave-output --verbose |