File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : System Tests Simulation
2
+
3
+ # run the simulation tests for every push to main
4
+ on :
5
+ push :
6
+ branches : [ "main" ]
7
+ # manual trigger
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : self-hosted
13
+ steps :
14
+ - name : Create workspace
15
+ id : step1
16
+ run : |
17
+ cd ros2_ws/src || mkdir -p ros2_ws/src
18
+ - name : Checkout motion capture package
19
+ id : step2
20
+ run : |
21
+ cd ros2_ws/src
22
+ ls motion_capture_tracking || git clone --branch ros2 --recursive https://github.com/IMRCLab/motion_capture_tracking.git
23
+ - name : Checkout Crazyswarm2
24
+ id : step3
25
+ uses : actions/checkout@v4
26
+ with :
27
+ path : ros2_ws/src/crazyswarm2
28
+ submodules : ' recursive'
29
+ - name : Build workspace
30
+ id : step4
31
+ run : |
32
+ source /opt/ros/humble/setup.bash
33
+ cd ros2_ws
34
+ colcon build --symlink-install
35
+
36
+ - name : Flight test
37
+ id : step5
38
+ run : |
39
+ cd ros2_ws
40
+ source /opt/ros/humble/setup.bash
41
+ . install/local_setup.bash
42
+ export ROS_LOCALHOST_ONLY=1
43
+ python3 src/crazyswarm2/systemtests/test_flights_sim.py --sim
44
+
45
+ - name : Upload files
46
+ id : step6
47
+ if : ' !cancelled()'
48
+ uses : actions/upload-artifact@v3
49
+ with :
50
+ name : pdf_rosbags_and_logs
51
+ path : |
52
+ ros2_ws/results
You can’t perform that action at this time.
0 commit comments