1
+ name : Build and test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ tags :
8
+ - ' **'
9
+ pull_request :
10
+ branches :
11
+ - main
12
+ # Allows you to run this workflow manually from the Actions tab
13
+ workflow_dispatch :
14
+
15
+ env :
16
+ WORKSPACE_PATH : ros_ws
17
+ CLONE_PATH : ros_ws/src/${{ github.events.repo.name }}
18
+
19
+ # only run one build doc workflow at a time, cancel any running ones
20
+ concurrency :
21
+ group : ${{ github.workflow }}-${{ github.ref }}
22
+ cancel-in-progress : true
23
+
24
+ jobs :
25
+ build-and-test :
26
+ runs-on : ubuntu-latest
27
+ strategy :
28
+ fail-fast : false
29
+ matrix :
30
+ ros_distribution :
31
+ - foxy
32
+ - galactic
33
+ - humble
34
+ - rolling
35
+ include :
36
+ # Foxy Fitzroy (June 2020 - May 2023)
37
+ - ros_distribution : foxy
38
+ docker_image : rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-latest
39
+ # Galactic Geochelone (May 2021 - November 2022)
40
+ - ros_distribution : galactic
41
+ docker_image : rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
42
+ # Humble Hawksbill (May 2022 - May 2027)
43
+ - ros_distribution : humble
44
+ docker_image : rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest
45
+ # Rolling Ridley (June 2020 - Present)
46
+ - ros_distribution : rolling
47
+ docker_image : rostooling/setup-ros-docker:ubuntu-jammy-ros-rolling-ros-base-latest
48
+ container :
49
+ image : ${{ matrix.docker_image }}
50
+ # Steps represent a sequence of tasks that will be executed as part of the job
51
+ steps :
52
+ - name : Setup workspace
53
+ run : mkdir -p ${{ env.CLONE_PATH }}
54
+ - name : checkout
55
+ uses : actions/checkout@v2
56
+ with :
57
+ path : ${{ env.CLONE_PATH }}
58
+ - name : Build and test
59
+ uses :
ros-tooling/[email protected]
60
+ with :
61
+ package-name : dynmsg dynmsg_demo dynmsg_msgs test_dynmsg
62
+ target-ros2-distro : ${{ matrix.ros_distribution }}
63
+ vcs-repo-file-url : " "
64
+ - name : Upload logs as artifacts
65
+ uses : actions/upload-artifact@v3
66
+ with :
67
+ name : build_and_test_logs_${{ matrix.ros_distribution }}
68
+ path : ${{ env.WORKSPACE_PATH }}/log
0 commit comments