Skip to content

Commit 43b186e

Browse files
committed
Added CI for ubuntu20.04 and 22.04
1 parent db96d0b commit 43b186e

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/build.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build ros_vrpn_client (ROS1)
2+
on:
3+
push:
4+
branches:
5+
- "master"
6+
pull_request:
7+
branches:
8+
- "master"
9+
schedule:
10+
- cron: '0 0 * * 0' # every Sunday at midnight
11+
12+
jobs:
13+
build:
14+
runs-on: [self-hosted, linux]
15+
env:
16+
rosdistro: ${{ matrix.ubuntu == '20.04' && 'noetic' || 'one' }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
gcc: ['9', '10', '11']
21+
ubuntu: ['20.04', '22.04']
22+
container:
23+
image: omavteam/ubuntu-omav-ros:ros-ros-base-${{ matrix.ubuntu }}
24+
credentials:
25+
username: ${{ secrets.DOCKER_USERNAME }}
26+
password: ${{ secrets.DOCKER_PASSWORD }}
27+
name: Ubuntu ${{ matrix.ubuntu }} - GCC ${{ matrix.gcc }}
28+
steps:
29+
- name: Switch GCC version
30+
run: |
31+
update-alternatives --set gcc /usr/bin/gcc-${{ matrix.gcc }}
32+
update-alternatives --set g++ /usr/bin/g++-${{ matrix.gcc}}
33+
gcc --version
34+
g++ --version
35+
36+
- uses: actions/checkout@v4
37+
name: Checkout catkin_simple
38+
with:
39+
repository: catkin/catkin_simple
40+
ref: master
41+
path: catkin_ws/src/catkin_simple
42+
43+
- uses: actions/checkout@v4
44+
name: Checkout vrpn_catkin
45+
with:
46+
repository: ethz-asl/vrpn_catkin
47+
path: catkin_ws/src/vrpn_catkin
48+
49+
- uses: actions/checkout@v4
50+
name: Checkout ros_vrpn_client
51+
with:
52+
repository: ethz-asl/ros_vrpn_client
53+
path: catkin_ws/src/ros_vrpn_client
54+
55+
- name: Build vrpn_catkin
56+
run: source /opt/ros/$rosdistro/setup.bash && catkin build ros_vrpn_client && source ${GITHUB_WORKSPACE}/catkin_ws/devel/setup.bash
57+
working-directory: catkin_ws
58+
shell: bash

0 commit comments

Comments
 (0)