forked from jsk-ros-pkg/jsk_visualization
-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (47 loc) · 1.78 KB
/
BuildTest.yaml
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: BuildTest
on:
push:
branches:
- feat/ros2
pull_request:
workflow_dispatch:
jobs:
build_and_test:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rosdistro : [foxy, galactic, humble]
steps:
- uses: actions/checkout@v2-beta
- name: Check dependency-${{ matrix.rosdistro }}.repos existence
id: check_rosdistro_repos_files
uses: andstor/file-existence-action@v1
with:
files: dependency-${{ matrix.rosdistro }}.repos
allow_failure: false
- name: Check dependency.repos existence
id: check_repos_files
uses: andstor/file-existence-action@v1
with:
files: dependency.repos
allow_failure: false
- name: Run OUXT-Polaris/ros2-ci@master with dependency-${{ matrix.rosdistro }}.repos
uses: OUXT-Polaris/ros2-ci@master
if: steps.check_rosdistro_repos_files.outputs.files_exists == 'true'
with:
ros2-distro: ${{ matrix.rosdistro }}
repos-filepath: dependency-${{ matrix.rosdistro }}.repos
- name: Run OUXT-Polaris/ros2-ci@master with dependency.repos
uses: OUXT-Polaris/ros2-ci@master
if: steps.check_rosdistro_repos_files.outputs.files_exists == 'false' && steps.check_repos_files.outputs.files_exists == 'true'
with:
ros2-distro: ${{ matrix.rosdistro }}
repos-filepath: dependency.repos
- name: Run OUXT-Polaris/ros2-ci@master without repos
uses: OUXT-Polaris/ros2-ci@master
if: steps.check_rosdistro_repos_files.outputs.files_exists == 'false' && steps.check_repos_files.outputs.files_exists == 'false'
with:
ros2-distro: ${{ matrix.rosdistro }}
image-name: ros # Docker Official Image