Skip to content

Create repos.yaml

Create repos.yaml #67

name: Ubuntu 22.04
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_and_test_22_04:
runs-on: ubuntu-22.04
steps:
# Check out repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Build and install
- name: install
run: |
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt install ros-humble-ros-base
sudo apt install ros-dev-tools
source /opt/ros/humble/setup.bash
sudo rosdep init
rosdep update
git clone https://github.com/ARC-OPT/wbc.git
sh wbc/scripts/install.sh
mkdir -p ros_ws/src
cd ros_ws/src
git clone https://github.com/ARC-OPT/wbc_msgs.git
cd ..
rosdep install --from-paths src/wbc_msgs
colcon build
source install/setup.bash
cd src
git clone https://github.com/ARC-OPT/wbc_ros.git
cd ..
rosdep install --from-paths src/wbc_ros
colcon build
# Run all tests
- name: test
run: |
cd ros_ws
source install/setup.bash
colcon test --packages-select wbc_ros