Skip to content

Commit

Permalink
Use rosdep to install dependencies in ROS workspaces
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Jan 17, 2024
1 parent 96aa82b commit 1dc22c0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,19 @@ jobs:
- {rosdistro: 'humble', container: 'osrf/ros:humble-desktop'}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
working-directory:
path: src/grid_map_geo
- name: Install Dependencies with Rosdep
run: |
apt update
apt install -y python3-wstool libgdal-dev
rosdep update
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
rosdep install --from-paths src --ignore-src -y
shell: bash
- name: Build Test
- name: Colcon Build (Release)
working-directory:
run: |
mkdir -p $HOME/ros2_ws/src;
cd $HOME/ros2_ws/src
ln -s $GITHUB_WORKSPACE
cd $HOME/ros2_ws
source /opt/ros/humble/setup.bash
rosdep update
rosdep install --from-paths src --ignore-src -y --rosdistro ${{matrix.config.rosdistro}}
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map_geo
shell: bash
# - name: unit_tests
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/check_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ jobs:
strategy:
fail-fast: false
matrix:
container:
- 'osrf/ros:humble-desktop'
container: ${{ matrix.container }}
config:
- {rosdistro: 'humble', container: 'osrf/ros:humble-desktop'}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v1
- name: Install clang-format
run: apt update && apt install -y clang-format-14
- uses: actions/checkout@v4
with:
path: src/grid_map_geo
- name: Install Dependencies with Rosdep
run: |
apt update
rosdep update
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
rosdep install --from-paths src --ignore-src -y
shell: bash
- name: Check Code format
working-directory: Tools
working-directory: src/grid_map_geo/Tools
run: |
./check_code_format.sh ..
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<depend>yaml_cpp_vendor</depend>
<exec_depend>ros2launch</exec_depend>
<exec_depend>grid_map_rviz_plugin</exec_depend>
<test_depend>clang-format</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down

0 comments on commit 1dc22c0

Please sign in to comment.