Skip to content

Commit

Permalink
Add iron CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rsasaki0109 authored May 29, 2024
1 parent e156a52 commit 48b2ee4
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: humble
name: ci

on:
pull_request:
branches:
- humble
- develop

jobs:
Expand Down Expand Up @@ -41,3 +40,38 @@ jobs:
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

0 comments on commit 48b2ee4

Please sign in to comment.