forked from introlab/rtabmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use setup-ros action
- Loading branch information
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|