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: Reusable Build Dependencies | |
defaults: | |
run: | |
shell: bash -ieo pipefail {0} | |
on: | |
workflow_call: | |
inputs: | |
robot: | |
description: one of [pr2, hsr, tiago, donbot] | |
required: true | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: 'ros_ws/src/pycram' | |
repository: cram2/pycram | |
run: | | |
cd ros_ws/src/pycram | |
sudo pip3 install -r requirements.txt | |
- name: Checkout iai_maps | |
uses: actions/checkout@v3 | |
with: | |
path: 'ros_ws/src/iai_maps' | |
repository: code-iai/iai_maps | |
ref: master | |
- name: Checkout iai_robots | |
uses: actions/checkout@v3 | |
with: | |
path: 'ros_ws/src/iai_robots' | |
repository: code-iai/iai_robots | |
ref: master | |
- name: Checkout pr2_common | |
uses: actions/checkout@v3 | |
with: | |
path: 'ros_ws/src/pr2_common' | |
repository: PR2/pr2_common | |
ref: master | |
- name: Checkout kdl_ik_service | |
uses: actions/checkout@v3 | |
with: | |
path: 'ros_ws/src/kdl_ik_service' | |
repository: cram2/kdl_ik_service | |
ref: master | |
- name: Checkout pr2_kinematics | |
uses: actions/checkout@v3 | |
with: | |
path: 'ros_ws/src/pr2_kinematics' | |
repository: PR2/pr2_kinematics | |
ref: master | |
- name: build and source | |
uses: betwo/github-setup-catkin@master | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
with: | |
# Version range or exact version of ROS version to use, using SemVer's version range syntax. | |
ros-version: noetic | |
build-tool: 'catkin_tools' | |
# Root directory of the catkin workspace | |
workspace: $GITHUB_WORKSPACE/ros_ws | |
run: | | |
cd ros_ws | |
catkin_make | |
echo 'export ROS_HOSTNAME=localhost' >> ~/.bashrc | |
echo 'source $GITHUB_WORKSPACE/ros_ws/devel/setup.bash' >> ~/.bashrc |