File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 15
15
matrix :
16
16
rosdistro : ['noetic']
17
17
gcc : ['8', '9', '10']
18
+ submodule : ['exclude', 'BMI08x-Sensor-API', 'BMP3-Sensor-API', 'all']
18
19
container : ros:${{ matrix.rosdistro }}-ros-base-focal
19
20
name : ROS ${{ matrix.rosdistro }} - GCC ${{ matrix.gcc }}
20
21
steps :
45
46
token : ${{ secrets.PAT }}
46
47
path : catkin_ws/src/mav_sensors
47
48
49
+ - name : Exclude submodules
50
+ if : matrix.submodule == 'exclude'
51
+ run : rm -rf mav_sensor_drivers/lib/*
52
+ shell : bash
53
+ working-directory : catkin_ws/src/mav_sensors
54
+
55
+ - name : Exclude submodules except ${{ matrix.submodule }}
56
+ if : matrix.submodule != 'exclude' && matrix.submodule != 'all'
57
+ run : find . -mindepth 1 -type d ! -name ${{ matrix.submodule }} -exec rm -rf {} +
58
+ working-directory : catkin_ws/src/mav_sensors/mav_sensor_drivers/lib
59
+ shell : bash
60
+
48
61
- name : Build mav_sensors
49
- run : source /opt/ros/${{ matrix.rosdistro }}/setup.bash && catkin build mav_sensors_demo && source ${GITHUB_WORKSPACE}/catkin_ws/devel/setup.bash
62
+ run : source /opt/ros/${{ matrix.rosdistro }}/setup.bash && catkin build -v mav_sensors_demo --no-status && source ${GITHUB_WORKSPACE}/catkin_ws/devel/setup.bash
50
63
shell : bash
51
64
working-directory : catkin_ws
52
65
You can’t perform that action at this time.
0 commit comments