Skip to content

Commit

Permalink
.github/workflows/config.yml: download ros-o repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 29, 2024
1 parent 1254218 commit 28af3d7
Showing 1 changed file with 34 additions and 10 deletions.
44 changes: 34 additions & 10 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,24 +159,48 @@ jobs:
cd rosinstall_generator
python3 ./setup.py install
- name: Setup Dependencies Workspace
- name: Setup 24.04 Dependencies Workspace
if: matrix.DISTRO != 'ubuntu:22.04'
run: |
set -x
# install dependencies
mkdir -p ~/ws_depend/src
cd ~/ws_depend/src
ROS_PACKAGE_PATH=/usr/share rosinstall_generator --rosdistro noetic --from-path $GITHUB_WORKSPACE --deps --exclude RPP --depend-type buildtool build | tee repos
mkdir -p ~/ws_depend/src/ros-o
cd ~/ws_depend/src/ros-o
git clone https://github.com/ros-o/rosconsole.git
git clone https://github.com/ros-o/gencpp.git
git clone https://github.com/ros-o/ros_comm.git
git clone https://github.com/ros-o/catkin_virtualenv.git
git clone https://github.com/ros-o/perception_pcl.git
export PATH=/github/home/.local/bin:$PATH # for 24.04, vcs installed with pipx
vcs import --shallow < repos
# override to use latest development for 22.04
rosinstall_generator laser_filters laser_assembler map_server --rosdistro noetic --upstream-development | vcs import --force
ROS_PACKAGE_PATH=/usr/share:$(pwd) rosinstall_generator --rosdistro noetic --deps --exclude RPP --repos message_runtime message_generation | vcs import --shallow
ROS_PACKAGE_PATH=/usr/share:$(pwd) rosinstall_generator --rosdistro noetic rosbash | vcs import --shallow
- name: Setup 22.04 Dependencies Workspace
if: matrix.DISTRO == 'ubuntu:22.04'
run: |
set -x
# install dependencies
mkdir -p ~/ws_depend/src/ros-o
cd ~/ws_depend/src/ros-o
rosinstall_generator catkin_virtualenv --rosdistro noetic | vcs import --force
rm -fr jsk_common
# Run catkin_run_tests_target only when CATKIN_ENABLE_TESTING is enabled #89 (https://github.com/locusrobotics/catkin_virtualenv/pull/89)
curl -s -L -O https://patch-diff.githubusercontent.com/raw/locusrobotics/catkin_virtualenv/pull/89.diff
patch -p1 < 89.diff
rosdep install -qq -r -y --from-path . --ignore-src || echo "OK"
cd ..
- name: Setup Dependencies Workspace
run: |
set -x
# install dependencies
mkdir -p ~/ws_depend/src/3rdparty-src
cd ~/ws_depend/src/3rdparty-src
ROS_PACKAGE_PATH=/usr/share rosinstall_generator --rosdistro noetic --from-path $GITHUB_WORKSPACE $HOME/ws_depend/src/ros-o --deps --deps-only --exclude RPP test_catkin_virtualenv test_catkin_virtualenv_inherited --depend-type buildtool build | tee repos
export PATH=/github/home/.local/bin:$PATH # for 24.04, vcs installed with pipx
vcs import --shallow < repos
# override to use latest development for 22.04
rosinstall_generator laser_filters laser_assembler map_server --rosdistro noetic --upstream-development | vcs import --force
ROS_PACKAGE_PATH=/usr/share:$HOME/ws_depend/src/ros-o rosinstall_generator --from-path $HOME/ws_depend/src/3rdparty-src --rosdistro noetic --deps --deps-only --exclude RPP test_catkin_virtualenv test_catkin_virtualenv_inherited | vcs import --shallow
cd ~/ws_depend
rosdep install -qq -r -y --from-path src --ignore-src || echo "OK"
catkin_make_isolated --cmake-args -DCATKIN_ENABLE_TESTING=OFF
- name: Setup Workspace
Expand Down

0 comments on commit 28af3d7

Please sign in to comment.