Skip to content

Commit

Permalink
Simplify rosdep job
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-stella committed Jun 15, 2023
1 parent 1f59937 commit 5777e16
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,35 @@ jobs:
uses: actions/checkout@v3
with:
repository: stella-cv/stella_vslam
path: stella_vslam
path: lib/stella_vslam
submodules: recursive
- name: install stella_vslam
run: |
cd stella_vslam
rosdep update
apt update
rosdep install -y -i --from-paths .
mkdir build
cd build
source /opt/ros/${ROS_DISTRO}/setup.bash # need to find libg2o
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j $(($(nproc) / 2))
make install
- uses: actions/checkout@v3
with:
submodules: recursive
- name: install dependencies for stella_vslam_ros
path: ros_ws/src/stella_vslam_ros
- name: build stella_vslam_ros
run: |
mkdir -p /ros_ws/src
cp -r . /ros_ws/src/stella_vslam_ros
cd /ros_ws
rosdep update
apt update
cd $GITHUB_WORKSPACE
rosdep install -y -i --from-paths lib
cd $GITHUB_WORKSPACE/lib/stella_vslam
mkdir -p $GITHUB_WORKSPACE/lib/stella_vslam/build
cd $GITHUB_WORKSPACE/lib/stella_vslam/build
USE_PANGOLIN_VIEWER=ON
USE_SOCKET_PUBLISHER=OFF
cmake .. \
-DUSE_STACK_TRACE_LOGGER=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER \
-DINSTALL_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER \
-DUSE_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER \
-DINSTALL_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER \
-DBUILD_EXAMPLES=ON \
..
make -j$(($(nproc) / 2))
make install
cd $GITHUB_WORKSPACE/ros_ws
rosdep install -y -i --from-paths src --skip-keys=stella_vslam
- name: build stella_vslam_ros
run: |
cd /ros_ws
source /opt/ros/${ROS_DISTRO}/setup.bash
catkin_make -j$(($(nproc) / 2))

0 comments on commit 5777e16

Please sign in to comment.