-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (38 loc) · 1.24 KB
/
build_test.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
name: ROS2 CI
on:
pull_request:
push:
branches:
- 'main'
jobs:
test_environment:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [humble, iron]
include:
- ros_distribution: humble
docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest
fix_libunwind: true
- ros_distribution: iron
docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-iron-ros-base-latest
fix_libunwind: true
container:
image: ${{ matrix.docker_image }}
steps:
# The 22.04 virtual environment includes libunwind-14-dev, which conflicts with libunwind-dev
- run: |-
sudo apt-get remove libunwind-14 -y
sudo apt-get install libunwind-dev -y
if: matrix.fix_libunwind
- run: |-
mkdir -p ros_ws/src
- uses: actions/checkout@v2
with:
path: ros_ws/src
- uses: ros-tooling/action-ros-ci@0.2.5
with:
package-name: gscam2
target-ros2-distro: ${{ matrix.ros_distribution }}
vcs-repo-file-url: "https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/workspace.repos"