-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.06 KB
/
build-workspace.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
name: Build ROS 2 Package
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup ROS 2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- name: Create workspace
run: |
mkdir -p ~/ros2_ws/src
cp -R $GITHUB_WORKSPACE ~/ros2_ws/src/
- name: Clone vortex-msgs
run: |
cd ~/ros2_ws/src
git clone https://github.com/vortexntnu/vortex-msgs.git
- name: Install dependencies
run: |
cd ~/ros2_ws
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: Build
run: |
cd ~/ros2_ws
. /opt/ros/humble/setup.sh
colcon build --symlink-install
- name: Run tests
run: |
cd ~/ros2_ws
. /opt/ros/humble/setup.sh
. install/setup.sh
colcon test
colcon test-result --verbose