Skip to content

Commit

Permalink
Add build and style ci (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund authored Sep 20, 2023
1 parent bfc77e7 commit 3463820
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build
on:
pull_request:
push:
branches: [ main ]
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
docker_image: ['ros:iron-ros-base', 'ros:rolling-ros-base']
container:
image: ${{ matrix.docker_image }}
timeout-minutes: 30
steps:
- name: Deps
run: |
apt update && apt install -y curl
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v2
- name: rosdep
run: |
rosdep update
rosdep install --from-paths . -yir
- name: build
run: /ros_entrypoint.sh colcon build
21 changes: 21 additions & 0 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: style
on:
pull_request:
push:
branches: [ main ]
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
docker_image: ['ros:iron-ros-base', 'ros:rolling-ros-base']
container:
image: ${{ matrix.docker_image }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: style
run: /ros_entrypoint.sh ament_uncrustify rmw_zenoh_cpp/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# rmw_alternative

![](https://github.com/yadunund/rmw_alternative/workflows/build/badge.svg)
![](https://github.com/yadunund/rmw_alternative/workflows/style/badge.svg)

A ROS 2 RMW implementation based on Zenoh that is written using the zenoh-c bindings.

## Requirements
Expand Down

0 comments on commit 3463820

Please sign in to comment.