-
Notifications
You must be signed in to change notification settings - Fork 41
49 lines (43 loc) · 1.35 KB
/
build_test_ros2.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
49
name: Build and Test with ROS2
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- name: "humble"
container:
image: "ghcr.io/fixposition/fixposition-sdk:humble-ci"
- name: "jazzy"
container:
image: "ghcr.io/fixposition/fixposition-sdk:jazzy-ci"
container: ${{ matrix.config.container }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
path: src/fixposition_driver
- name: Checkout Deps
uses: actions/checkout@v4
with:
repository: fixposition/fixposition_gnss_tf
path: src/fixposition_gnss_tf
- name: Ignore ROS1 node
run: |
touch src/fixposition_driver/fixposition_driver_ros1/COLCON_IGNORE
touch src/fixposition_driver/fixposition_odometry_converter_ros1/COLCON_IGNORE
- name: Build and Test
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
colcon build --packages-up-to fixposition_driver_ros2 --cmake-args -DBUILD_TESTING=ON
colcon test --packages-up-to fixposition_driver_ros2
colcon test-result --test-result-base build/fixposition_gnss_tf/