-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/forkflows/config.yml: add ROS-O test, see https://github.com/…
…v4hn/ros-o-builder/blob/jammy-one/README.md#install-instructions for how to setup
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 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 |
---|---|---|
|
@@ -190,3 +190,61 @@ jobs: | |
source ~/ws_depend/devel_isolated/setup.bash | ||
catkin_make_isolated ${{ matrix.CATKIN_OPTIONS }} --cmake-args -DCATKIN_ENABLE_TESTING=OFF -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ${{ matrix.CMAKE_OPTIONS }} | ||
shell: bash | ||
|
||
# ROS-O setup https://github.com/v4hn/ros-o-builder/blob/jammy-one/README.md#install-instructions | ||
ros-o: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- DISTRO: ubuntu:22.04 | ||
ROS_REPOSITORY_URL: https://raw.githubusercontent.com/v4hn/ros-o-builder/jammy-one/repository | ||
|
||
container: ${{ matrix.DISTRO }} | ||
|
||
env: | ||
DEBIAN_FRONTEND : noninteractive | ||
|
||
steps: | ||
- name: Chcekout Source | ||
uses: actions/[email protected] | ||
|
||
- name: Setup ROS-O deb repository | ||
run: | | ||
set -x | ||
apt update && apt install -qq -y ca-certificates | ||
echo "deb [trusted=yes] ${{ matrix.ROS_REPOSITORY_URL }}/ ./" | tee /etc/apt/sources.list.d/ros-o-builder.list | ||
apt update | ||
apt install -qq -y python3-rosdep2 | ||
echo "yaml ${{ matrix.ROS_REPOSITORY_URL }}/local.yaml debian" | tee /etc/ros/rosdep/sources.list.d/1-ros-o-builder.list | ||
rosdep update | ||
- name: Setup catkin-tools | ||
run: | | ||
set -x | ||
# setup catkin tools | ||
apt install -qq -y python3-pip | ||
pip3 install catkin-tools | ||
# setup build tools | ||
apt install -qq -y cmake build-essential catkin ros-one-rosbash | ||
- name: Setup Workspace | ||
run: | | ||
source /opt/ros/one/setup.bash | ||
set -x | ||
# setup workspace | ||
mkdir -p ~/ws/src | ||
cd ~/ws/src | ||
ln -sf $GITHUB_WORKSPACE . | ||
rosdep install -qq -r -y --from-path . --ignore-src || echo "OK" | ||
shell: bash | ||
|
||
- name: Compile Packages | ||
run: | | ||
source /opt/ros/one/setup.bash | ||
set -x | ||
cd ~/ws/ | ||
catkin build --no-status -sv ${{ matrix.CATKIN_OPTIONS }} --cmake-args -DCATKIN_ENABLE_TESTING=OFF -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ${{ matrix.CMAKE_OPTIONS }} | ||
shell: bash |