-
Notifications
You must be signed in to change notification settings - Fork 123
77 lines (74 loc) · 2 KB
/
main.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: ci
on:
pull_request:
branches:
- develop
jobs:
job1:
name: Build
runs-on: ubuntu-22.04
container: ros:humble-ros-core
steps:
- name: Install Git
run: |
apt-get update
apt-get install -y git
shell: bash
- uses: actions/checkout@v2
with:
submodules: true
- name: Copy repository
run: |
mkdir -p ~/ros2_ws/src/lidarslam_ros2
cp -rf . ~/ros2_ws/src/lidarslam_ros2
shell: bash
- name: Install dependencies
run: |
apt-get install -y python3-rosdep
rosdep init
rosdep update
cd ~/ros2_ws/src
rosdep install -r -y --from-paths . --ignore-src
shell: bash
- name: Build packages
run: |
source /opt/ros/humble/setup.bash
apt-get install -y python3-colcon-common-extensions
cd ~/ros2_ws
colcon build
source ~/ros2_ws/install/setup.bash
shell: bash
iron:
name: Build for Iron
runs-on: ubuntu-22.04
container: ros:iron-ros-core
steps:
- name: Install Git
run: |
apt-get update
apt-get install -y git
shell: bash
- uses: actions/checkout@v2
with:
submodules: true
- name: Copy repository
run: |
mkdir -p ~/ros2_ws/src/lidarslam_ros2
cp -rf . ~/ros2_ws/src/lidarslam_ros2
shell: bash
- name: Install dependencies
run: |
apt-get install -y python3-rosdep
rosdep init
rosdep update
cd ~/ros2_ws/src
rosdep install -r -y --from-paths . --ignore-src
shell: bash
- name: Build packages
run: |
source /opt/ros/iron/setup.bash
apt-get install -y python3-colcon-common-extensions
cd ~/ros2_ws
colcon build
source ~/ros2_ws/install/setup.bash
shell: bash