Skip to content

Build ros_vrpn_client (ROS1) #19

Build ros_vrpn_client (ROS1)

Build ros_vrpn_client (ROS1) #19

Workflow file for this run

name: Build ros_vrpn_client (ROS1)
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
schedule:
- cron: '0 0 * * 0' # every Sunday at midnight
jobs:
build:
runs-on: [self-hosted, linux]
env:
rosdistro: ${{ matrix.ubuntu == '20.04' && 'noetic' || 'one' }}
strategy:
fail-fast: false
matrix:
gcc: ['9', '10', '11']
ubuntu: ['20.04', '22.04']
container:
image: omavteam/ubuntu-omav-ros:ros-desktop-${{ matrix.ubuntu }}
credentials:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
name: Ubuntu ${{ matrix.ubuntu }} - GCC ${{ matrix.gcc }}
steps:
- name: Switch GCC version
run: |
update-alternatives --set gcc /usr/bin/gcc-${{ matrix.gcc }}
update-alternatives --set g++ /usr/bin/g++-${{ matrix.gcc}}
gcc --version
g++ --version
- uses: actions/checkout@v4
name: Checkout catkin_simple
with:
repository: catkin/catkin_simple
ref: master
path: catkin_ws/src/catkin_simple
- uses: actions/checkout@v4
name: Checkout vrpn_catkin
with:
repository: ethz-asl/vrpn_catkin
path: catkin_ws/src/vrpn_catkin
- uses: actions/checkout@v4
name: Checkout glog_catkin
with:
path: catkin_ws/src/glog_catkin
repository: ethz-asl/glog_catkin
- uses: actions/checkout@v4
name: Checkout ros_vrpn_client
with:
repository: ethz-asl/ros_vrpn_client
path: catkin_ws/src/ros_vrpn_client
- name: Install tf2_eigen
run: apt update && apt install -y ros-${{ env.rosdistro }}-tf2-eigen
shell: bash
- name: Build vrpn_catkin
run: source /opt/ros/$rosdistro/setup.bash && catkin build ros_vrpn_client && source ${GITHUB_WORKSPACE}/catkin_ws/devel/setup.bash
working-directory: catkin_ws
shell: bash