File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Basic Build Workflow
2
+
3
+ on :
4
+ push :
5
+ branches : [rolling]
6
+ pull_request :
7
+ types : [opened, reopened, synchronize]
8
+
9
+ jobs :
10
+ build-rolling :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ fail-fast : false
14
+ container :
15
+ image : osrf/ros2:testing
16
+ steps :
17
+ - name : Checkout repo
18
+ uses : actions/checkout@v4
19
+ - name : Create Workspace
20
+ run : |
21
+ mkdir src_tmp
22
+ mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/
23
+ mv src_tmp/ src/
24
+ - name : Install Prerequisites
25
+ run : |
26
+ bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
27
+ apt-get update && apt-get upgrade -y && rosdep update; \
28
+ rosdep install --from-paths src --ignore-src -y'
29
+ - name : Build Workspace
30
+ run : |
31
+ bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
32
+ colcon build'
33
+ - name : Run Tests
34
+ run : |
35
+ bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
36
+ colcon test; \
37
+ colcon test-result --verbose'
You can’t perform that action at this time.
0 commit comments