diff --git a/.github/workflows/humble.yml b/.github/workflows/humble.yml new file mode 100644 index 0000000..cdb0c21 --- /dev/null +++ b/.github/workflows/humble.yml @@ -0,0 +1,32 @@ +# This is workflow for parameter server with humble +name: humble + +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. + + 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 diff --git a/.github/workflows/iron.yml b/.github/workflows/iron.yml new file mode 100644 index 0000000..e718493 --- /dev/null +++ b/.github/workflows/iron.yml @@ -0,0 +1,32 @@ +# This is workflow for parameter server with iron +name: iron + +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. + + 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 diff --git a/.github/workflows/build.yml b/.github/workflows/rolling.yml similarity index 52% rename from .github/workflows/build.yml rename to .github/workflows/rolling.yml index e2ac599..d4e2cf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/rolling.yml @@ -1,5 +1,5 @@ -# This is workflow to build parameter server in ros docker images -name: build +# This is workflow for parameter server with rolling +name: rolling on: push: @@ -17,7 +17,7 @@ jobs: # each job description absorb the distribution dependency as much as possible, # so that build verification script can be agnostic from distribution dependency. - rolling-build: + build: runs-on: ubuntu-latest container: image: ros:rolling @@ -30,31 +30,3 @@ jobs: 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 diff --git a/README.md b/README.md index fd52c3c..20baf6e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![humble](https://github.com/fujitatomoya/ros2_persist_parameter_server/actions/workflows/humble.yml/badge.svg)](https://github.com/fujitatomoya/ros2_persist_parameter_server/actions/workflows/humble.yml) [![iron](https://github.com/fujitatomoya/ros2_persist_parameter_server/actions/workflows/iron.yml/badge.svg)](https://github.com/fujitatomoya/ros2_persist_parameter_server/actions/workflows/iron.yml) [![rolling](https://github.com/fujitatomoya/ros2_persist_parameter_server/actions/workflows/rolling.yml/badge.svg)](https://github.com/fujitatomoya/ros2_persist_parameter_server/actions/workflows/rolling.yml) + # ROS2 Persistent Parameter Server