-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.09 KB
/
cmake-single-platform.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: Build and Test ROS Package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: ros:noetic-robot # Using ROS Noetic official Docker container
steps:
- name: Checkout Code
uses: actions/checkout@v3 # Updated to the latest version
- name: Setup ROS Environment
run: |
echo "source /opt/ros/noetic/setup.bash" >> $GITHUB_ENV
sudo apt update
sudo apt install -y python3-rosdep python3-pip
sudo rosdep init
rosdep update
- name: Install Dependencies
run: |
rosdep install --from-paths src --ignore-src -r -y
- name: Install yaml-cpp
run: |
sudo apt-get install -y libyaml-cpp-dev
- name: Build ROS Package
run: |
source /opt/ros/noetic/setup.bash
mkdir -p catkin_ws/src
cp -R . catkin_ws/src/
cd catkin_ws
catkin_make
- name: Run Tests
run: |
source catkin_ws/devel/setup.bash
catkin_make run_tests && catkin_test_results