|
6 | 6 | - main
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - humble_build: |
10 |
| - name: Build |
11 |
| - runs-on: ubuntu-22.04 |
12 |
| - container: ros:humble |
13 |
| - steps: |
14 |
| - - uses: actions/checkout@v1 |
15 |
| - with: |
16 |
| - submodules: true |
17 |
| - - name: Copy repository |
18 |
| - run: | |
19 |
| - mkdir -p ~/ros2_ws/src/lidar_localization_ros2 |
20 |
| - cp -rf . ~/ros2_ws/src/lidar_localization_ros2 |
21 |
| - - name: Install dependencies |
22 |
| - run: | |
23 |
| - source /opt/ros/humble/setup.bash |
24 |
| - sudo apt install -y python3-rosdep |
25 |
| - apt update |
26 |
| - rosdep update |
27 |
| - cd ~/ros2_ws/src |
28 |
| - git clone https://github.com/rsasaki0109/ndt_omp_ros2.git -b humble |
29 |
| - rosdep install -r -y --from-paths . --ignore-src |
30 |
| - shell: bash |
31 |
| - - name: Build packages |
32 |
| - run: | |
33 |
| - source /opt/ros/humble/setup.bash |
34 |
| - # Install colcon |
35 |
| - # Ref: https://index.ros.org/doc/ros2/Tutorials/Colcon-Tutorial/ |
36 |
| - sudo apt install python3-colcon-common-extensions |
37 |
| - cd ~/ros2_ws |
38 |
| - colcon build |
39 |
| - source ~/ros2_ws/install/setup.bash |
40 |
| - shell: bash |
| 9 | + humble_build: |
| 10 | + name: Build on Humble |
| 11 | + runs-on: ubuntu-22.04 |
| 12 | + container: ros:humble |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v1 |
| 15 | + with: |
| 16 | + submodules: true |
| 17 | + - name: Copy repository |
| 18 | + run: | |
| 19 | + mkdir -p ~/ros2_ws/src/lidar_localization_ros2 |
| 20 | + cp -rf . ~/ros2_ws/src/lidar_localization_ros2 |
| 21 | + - name: Install dependencies |
| 22 | + run: | |
| 23 | + source /opt/ros/humble/setup.bash |
| 24 | + sudo apt install -y python3-rosdep |
| 25 | + apt update |
| 26 | + rosdep update |
| 27 | + cd ~/ros2_ws/src |
| 28 | + git clone https://github.com/rsasaki0109/ndt_omp_ros2.git -b humble |
| 29 | + rosdep install -r -y --from-paths . --ignore-src |
| 30 | + shell: bash |
| 31 | + - name: Build packages |
| 32 | + run: | |
| 33 | + source /opt/ros/humble/setup.bash |
| 34 | + sudo apt install python3-colcon-common-extensions |
| 35 | + cd ~/ros2_ws |
| 36 | + colcon build |
| 37 | + source ~/ros2_ws/install/setup.bash |
| 38 | + shell: bash |
| 39 | + |
| 40 | + jazzy_build: |
| 41 | + name: Build on Jazzy |
| 42 | + runs-on: ubuntu-24.04 |
| 43 | + container: ros:jazzy |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v1 |
| 46 | + with: |
| 47 | + submodules: true |
| 48 | + - name: Copy repository |
| 49 | + run: | |
| 50 | + mkdir -p ~/ros2_ws/src/lidar_localization_ros2 |
| 51 | + cp -rf . ~/ros2_ws/src/lidar_localization_ros2 |
| 52 | + - name: Install dependencies |
| 53 | + run: | |
| 54 | + source /opt/ros/jazzy/setup.bash |
| 55 | + sudo apt install -y python3-rosdep |
| 56 | + apt update |
| 57 | + rosdep update |
| 58 | + cd ~/ros2_ws/src |
| 59 | + git clone https://github.com/rsasaki0109/ndt_omp_ros2.git -b humble |
| 60 | + rosdep install -r -y --from-paths . --ignore-src |
| 61 | + shell: bash |
| 62 | + - name: Build packages |
| 63 | + run: | |
| 64 | + source /opt/ros/jazzy/setup.bash |
| 65 | + sudo apt install python3-colcon-common-extensions |
| 66 | + cd ~/ros2_ws |
| 67 | + colcon build |
| 68 | + source ~/ros2_ws/install/setup.bash |
| 69 | + shell: bash |
0 commit comments