-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.55 KB
/
build_and_test_ubuntu22.04.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
git clone https://github.com/ARC-OPT/wbc_ros.git
cd ..
rosdep install --from-paths src/wbc_msgs
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