add release.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |