-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.21 KB
/
noetic.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
name: ROS noetic build and run test
on: push
jobs:
build:
runs-on: ubuntu-20.04
env:
CATKIN_WS: /home/runner/work/catkin_ws
steps:
- uses: actions/checkout@v2
- name: Setup ROS
uses: ros-tooling/setup-ros@v0.2
with:
required-ros-distributions: noetic
- name: Install catkin tool
run: sudo apt-get install python3-catkin-tools
- name: Install rospkg
run: sudo pip3 install --target=/opt/ros/noetic/lib/python3/dist-packages rospkg
- name: Install python-is-python3
run: sudo apt install python-is-python3
- name: Init workspace
run: |
source /opt/ros/noetic/setup.bash
mkdir -p ${CATKIN_WS}/src
ln -s ${GITHUB_WORKSPACE} ${CATKIN_WS}/src/
- name: pre build
run: |
source /opt/ros/noetic/setup.bash
cd ${CATKIN_WS}/src/transform_pointcloud
git submodule update --init --recursive
rosdep update
rosdep install -i -y --from-paths ./
- name: Build test
run: |
source /opt/ros/noetic/setup.bash
cd ${CATKIN_WS}
catkin build
- name: Run test
run: |
source ${CATKIN_WS}/devel/setup.bash
bash -xv ./test/test.bash