add github workflows to build test. #8
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
# This is workflow to build parameter server in ros docker images | |
name: build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# each job goes for each ros supported distribution. | |
# each job description absorb the distribution dependency as much as possible, | |
# so that build verification script can be agnostic from distribution dependency. | |
rolling-build: | |
runs-on: ubuntu-latest | |
container: | |
image: ros:rolling | |
env: | |
ROS_DISTRO: rolling | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Build with ROS rolling | |
shell: bash | |
run: | | |
./scripts/build-verification.sh | |
iron-build: | |
runs-on: ubuntu-latest | |
container: | |
image: ros:iron | |
env: | |
ROS_DISTRO: iron | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Build with ROS iron | |
shell: bash | |
run: | | |
./scripts/build-verification.sh | |
humble-build: | |
runs-on: ubuntu-latest | |
container: | |
image: ros:humble | |
env: | |
ROS_DISTRO: humble | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Build with ROS humble | |
shell: bash | |
run: | | |
./scripts/build-verification.sh |