forked from USC-ACTLab/crazyswarm
-
Notifications
You must be signed in to change notification settings - Fork 64
69 lines (59 loc) · 1.75 KB
/
systemtests.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: System Tests
on:
push:
branches: [ "feature-systemtests-better" ]
# manual trigger
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- name: Create workspace
id: step1
run: |
cd ros2_ws/src || mkdir -p ros2_ws/src
- name: Checkout motion capture package
id: step2
run: |
cd ros2_ws/src
ls motion_capture_tracking || git clone --branch ros2 --recursive https://github.com/IMRCLab/motion_capture_tracking.git
- name: Checkout Crazyswarm2
id: step3
uses: actions/checkout@v4
with:
path: ros2_ws/src/crazyswarm2
submodules: 'recursive'
- name: Build workspace
id: step4
run: |
source /opt/ros/humble/setup.bash
cd ros2_ws
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
- name: Flight test
id: step5
run: |
cd ros2_ws
source /opt/ros/humble/setup.bash
. install/local_setup.bash
export ROS_LOCALHOST_ONLY=1
export ROS_DOMAIN_ID=99
python3 src/crazyswarm2/systemtests/test_flights.py
- name: Upload files
id: step6
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
name: pdf_rosbags_and_logs
path: |
ros2_ws/results
# - name: build and test ROS 2
# uses: ros-tooling/[email protected]
# with:
# package-name: |
# crazyflie
# crazyflie_examples
# crazyflie_interfaces
# crazyflie_py
# crazyflie_sim
# target-ros2-distro: humble
# vcs-repo-file-url: rosinstall