-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (63 loc) · 1.8 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
62
63
name: CI
on:
push:
branches:
- add-ci-build-check
jobs:
ci:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container:
image: ros:noetic-ros-base
defaults:
run:
shell: bash
steps:
# System update
- name: Run apt-upgrade
run: |
sudo apt update
sudo apt --yes upgrade
# Checkout core
- name: Checkout layered_hardware
uses: actions/checkout@v2
with:
repository: yoshito-n-students/layered_hardware
path: src/layered_hardware
# Checkout extensions
- name: Checkout layered_hardware_extensions
uses: actions/checkout@v2
with:
repository: yoshito-n-students/layered_hardware_extensions
path: src/layered_hardware_extensions
# Checkout dynamixel
- name: Checkout layered_hardware_unitree
uses: actions/checkout@v2
with:
repository: yoshito-n-students/layered_hardware_unitree
path: src/layered_hardware_unitree
submodules: true
# Checkout misc
- name: Checkout ros_controll_extensions
uses: actions/checkout@v2
with:
repository: yoshito-n-students/ros_control_extensions
path: src/ros_control_extensions
# Install dependencies
- name: Run rosdep-install
run: |
source /opt/ros/noetic/setup.bash
sudo apt update
rosdep update --rosdistro noetic
sudo rosdep install --default-yes -r --ignore-src --from-paths src --rosdistro noetic
# catkin_make
- name: Build
run: |
source /opt/ros/noetic/setup.bash
catkin_make
# run_tests
- name: Run tests
run: |
source /opt/ros/noetic/setup.bash
catkin_make run_tests