-
Notifications
You must be signed in to change notification settings - Fork 15
61 lines (57 loc) · 1.69 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true # cancel if new changes are pushed
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install shfmt
run: sudo snap install shfmt
- name: Check
run: make check
ros:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ros_distro: noetic
python_suffix: 3
container:
image: ros:${{ matrix.ros_distro }}-robot
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- uses: actions/checkout@v3
- name: Setup
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y python${{ matrix.python_suffix }}-catkin-tools clang-tidy-10
$GITHUB_WORKSPACE/install.sh
- name: Init Workspace
run: |
mkdir -p $GITHUB_WORKSPACE/../catkin_ws/src
cd $GITHUB_WORKSPACE/../catkin_ws/src
ln -s $GITHUB_WORKSPACE telecarla
ln -s $GITHUB_WORKSPACE/../ros-bridge ros-bridge
cd ..
catkin init
- name: Build and Check
shell: bash
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
cd $GITHUB_WORKSPACE/../catkin_ws
catkin build --summarize --no-status --force-color --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_CLANG_TIDY=clang-tidy-10
- name: Test
shell: bash
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
cd $GITHUB_WORKSPACE/../catkin_ws
catkin run_tests --no-status --force-color && catkin_test_results