-
Notifications
You must be signed in to change notification settings - Fork 60
69 lines (66 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
name: build
on:
pull_request:
branches:
- main
jobs:
humble_build:
name: Build on Humble
runs-on: ubuntu-22.04
container: ros:humble
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Copy repository
run: |
mkdir -p ~/ros2_ws/src/lidar_localization_ros2
cp -rf . ~/ros2_ws/src/lidar_localization_ros2
- name: Install dependencies
run: |
source /opt/ros/humble/setup.bash
sudo apt install -y python3-rosdep
apt update
rosdep update
cd ~/ros2_ws/src
git clone https://github.com/rsasaki0109/ndt_omp_ros2.git -b humble
rosdep install -r -y --from-paths . --ignore-src
shell: bash
- name: Build packages
run: |
source /opt/ros/humble/setup.bash
sudo apt install python3-colcon-common-extensions
cd ~/ros2_ws
colcon build
source ~/ros2_ws/install/setup.bash
shell: bash
jazzy_build:
name: Build on Jazzy
runs-on: ubuntu-24.04
container: ros:jazzy
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Copy repository
run: |
mkdir -p ~/ros2_ws/src/lidar_localization_ros2
cp -rf . ~/ros2_ws/src/lidar_localization_ros2
- name: Install dependencies
run: |
source /opt/ros/jazzy/setup.bash
sudo apt install -y python3-rosdep
apt update
rosdep update
cd ~/ros2_ws/src
git clone https://github.com/rsasaki0109/ndt_omp_ros2.git -b jazzy
rosdep install -r -y --from-paths . --ignore-src
shell: bash
- name: Build packages
run: |
source /opt/ros/jazzy/setup.bash
sudo apt install python3-colcon-common-extensions
cd ~/ros2_ws
colcon build
source ~/ros2_ws/install/setup.bash
shell: bash