mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Update cmake-ros.yml
Added ros2 distros
This commit is contained in:
41
.github/workflows/cmake-ros.yml
vendored
41
.github/workflows/cmake-ros.yml
vendored
@@ -18,50 +18,49 @@ jobs:
|
|||||||
# well on Windows or Mac. You can convert this to a matrix build if you need
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
||||||
# cross-platform coverage.
|
# cross-platform coverage.
|
||||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||||
name: Build on ros ${{ matrix.ros_distro }} and ${{ matrix.os }}
|
name: Build on ros ${{ matrix.ros_distribution }} and ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04, ubuntu-18.04]
|
ros_distribution: [melodic, noetic, foxy, galactic, humble, rolling]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
- ros_distribution: 'melodic'
|
||||||
ros_distro: 'noetic'
|
os: ubuntu-18.04
|
||||||
- os: ubuntu-18.04
|
- ros_distribution: 'noetic'
|
||||||
ros_distro: 'melodic'
|
os: ubuntu-20.04
|
||||||
|
- ros_distribution: 'foxy'
|
||||||
|
os: ubuntu-20.04
|
||||||
|
- ros_distribution: 'galactic'
|
||||||
|
os: ubuntu-20.04
|
||||||
|
- ros_distribution: 'humble'
|
||||||
|
os: ubuntu-22.04
|
||||||
|
- ros_distribution: 'rolling'
|
||||||
|
os: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: ros-tooling/setup-ros@v0.2
|
- uses: ros-tooling/setup-ros@v0.4
|
||||||
with:
|
with:
|
||||||
required-ros-distributions: ${{ matrix.ros_distro }}
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install ros-${{ matrix.ros_distro }}-rtabmap-ros
|
sudo apt-get -y install ros-${{ matrix.ros_distribution }}-rtabmap
|
||||||
sudo apt-get -y remove ros-${{ matrix.ros_distro }}-rtabmap
|
sudo apt-get -y remove ros-${{ matrix.ros_distribution }}-rtabmap
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: |
|
run: |
|
||||||
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
|
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
|
||||||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
# Build your program with the given configuration
|
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Info
|
- name: Info
|
||||||
working-directory: ${{github.workspace}}/build/bin
|
working-directory: ${{github.workspace}}/build/bin
|
||||||
run: |
|
run: |
|
||||||
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
|
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
|
||||||
./rtabmap-console --version
|
./rtabmap-console --version
|
||||||
|
|
||||||
# - name: Test
|
|
||||||
# working-directory: ${{github.workspace}}/build
|
|
||||||
# # Execute tests defined by the CMake configuration.
|
|
||||||
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
# run: ctest -C ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user