Skip to content

Commit 92ab840

Browse files
author
wep21
committed
Update workflow
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
1 parent 454ff9e commit 92ab840

File tree

2 files changed

+53
-34
lines changed

2 files changed

+53
-34
lines changed

.github/workflows/build_and_test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: ROS2 CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'ros2'
7+
8+
jobs:
9+
test_environment:
10+
runs-on: [ubuntu-latest]
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
ros_distribution:
15+
- foxy
16+
- galactic
17+
- rolling
18+
include:
19+
# Foxy Fitzroy (June 2020 - May 2023)
20+
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-latest
21+
ros_distribution: foxy
22+
ros_version: 2
23+
# Galactic Geochelone (May 2021 - November 2022)
24+
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
25+
ros_distribution: galactic
26+
ros_version: 2
27+
# Rolling Ridley (June 2020 - Present)
28+
- docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-rolling-ros-base-latest
29+
ros_distribution: rolling
30+
ros_version: 2
31+
container:
32+
image: ${{ matrix.docker_image }}
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 2
38+
39+
- name: Search packages in this repository
40+
id: list_packages
41+
run: |
42+
echo ::set-output name=package_list::$(colcon list --names-only)
43+
- name: Setup ROS environment
44+
uses: ros-tooling/setup-ros@v0.2
45+
with:
46+
required-ros-distributions: ${{ matrix.ros_distribution }}
47+
48+
- name: build and test
49+
uses: ros-tooling/action-ros-ci@v0.2
50+
with:
51+
package-name: ${{ steps.list_packages.outputs.package_list }}
52+
target-ros2-distro: ${{ matrix.ros_distribution }}
53+
vcs-repo-file-url: build_depends.repos

.github/workflows/industrial_ci_action.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)