Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
use setup-ros action
  • Loading branch information
matlabbe authored Sep 8, 2021
1 parent b51b252 commit 2111b64
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ jobs:
ros_distro: 'melodic'

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get update && sudo apt-get install dpkg
sudo apt-get -y install ros-${{ matrix.ros_distro }}-rtabmap-ros
sudo apt-get -y remove ros-${{ matrix.ros_distro }}-rtabmap
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distro }}
- uses: ros-tooling/[email protected]
with:
package-name: ros-${{ matrix.ros_distro }}-rtabmap-ros
target-ros1-distro: ${{ matrix.ros_distro }}

- name: Post-install dependencies
run: sudo apt-get -y remove ros-${{ matrix.ros_distro }}-rtabmap

- 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.
Expand Down

0 comments on commit 2111b64

Please sign in to comment.