1
- name : foxy
1
+ name : humble
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - foxy
6
+ - humble
7
7
pull_request :
8
8
branches :
9
- - foxy
9
+ - humble
10
10
11
11
jobs :
12
12
job1 :
13
13
name : Build
14
- runs-on : ubuntu-20.04
14
+ runs-on : ubuntu-22.04
15
+ # container:
16
+ # image: ubuntu:jammy
15
17
steps :
16
18
- name : ROS2 Install
17
19
run : |
18
- # Ref: https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Install-Debians/
20
+ sudo apt update && sudo apt install locales
19
21
sudo locale-gen en_US en_US.UTF-8
20
22
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
21
23
export LANG=en_US.UTF-8
22
24
sudo apt update && sudo apt install curl gnupg2 lsb-release
23
25
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
24
26
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
25
27
sudo apt update
26
- sudo apt install ros-foxy -desktop
27
- source /opt/ros/foxy /setup.bash
28
+ sudo apt install ros-humble -desktop
29
+ source /opt/ros/humble /setup.bash
28
30
- uses : actions/checkout@v1
29
31
with :
30
32
submodules : true
@@ -34,17 +36,17 @@ jobs:
34
36
cp -rf . ~/ros2_ws/src/lidarslam_ros2
35
37
- name : Install dependencies
36
38
run : |
37
- source /opt/ros/foxy /setup.bash
39
+ source /opt/ros/humble /setup.bash
38
40
sudo apt install -y python3-rosdep2
39
41
rosdep update
40
42
cd ~/ros2_ws/src
41
43
rosdep install -r -y --from-paths . --ignore-src
42
44
- name : Build packages
43
45
run : |
44
- source /opt/ros/foxy /setup.bash
46
+ source /opt/ros/humble /setup.bash
45
47
# Install colcon
46
48
# Ref: https://index.ros.org/doc/ros2/Tutorials/Colcon-Tutorial/
47
49
sudo apt install python3-colcon-common-extensions
48
50
cd ~/ros2_ws
49
51
colcon build
50
- source ~/ros2_ws/install/setup.bash
52
+ source ~/ros2_ws/install/setup.bash
0 commit comments