Add ros jazzy CI #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |