Skip to content

Commit c3637d1

Browse files
committed
Add CI
1 parent 25d8dbd commit c3637d1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build vrpn_catkin
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: [self-hosted, linux]
7+
env:
8+
rosdistro: ${{ matrix.ubuntu == '20.04' && 'noetic' || 'one' }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
gcc: ['9', '10', '11']
13+
ubuntu: ['20.04', '22.04']
14+
container:
15+
image: omavteam/ubuntu-omav-ros:ros-ros-base-${{ matrix.ubuntu }}
16+
credentials:
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
19+
name: Ubuntu ${{ matrix.ubuntu }} - GCC ${{ matrix.gcc }}
20+
steps:
21+
- name: Switch GCC version
22+
run: |
23+
update-alternatives --set gcc /usr/bin/gcc-${{ matrix.gcc }}
24+
update-alternatives --set g++ /usr/bin/g++-${{ matrix.gcc}}
25+
gcc --version
26+
g++ --version
27+
28+
- uses: actions/checkout@v4
29+
name: Checkout vrpn_catkin
30+
with:
31+
repository: ethz-asl/vrpn_catkin
32+
path: catkin_ws/src/vrpn_catkin
33+
34+
- name: Build vrpn_catkin
35+
run: source /opt/ros/$rosdistro/setup.bash && catkin build vrpn_catkin && source ${GITHUB_WORKSPACE}/catkin_ws/devel/setup.bash
36+
working-directory: catkin_ws
37+
shell: bash
38+
39+

0 commit comments

Comments
 (0)