Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ci_yml and update readme #19

Merged
merged 4 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci_galactic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci_galactic

on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, labeled]

jobs:
ci:
runs-on: ${{ matrix.os }}
if: |
((github.event.action == 'labeled') &&
(github.event.label.name == 'TESTING')) ||
((github.event.action == 'synchronize') &&
contains(github.event.pull_request.labels.*.name, 'TESTING')) ||
(github.ref == 'refs/heads/main')
container:
image: osrf/ros:${{ matrix.ros_distribution }}-desktop
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ros_distribution: [galactic]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y wget python3-vcstool python3-colcon-coveragepy-result
- name: Build and Test
uses: ros-tooling/action-ros-ci@v0.2
with:
target-ros2-distro: ${{ matrix.ros_distribution }}
import-token: ${{ secrets.GITHUB_TOKEN }}
package-name: |
p9n_interface
p9n_example
p9n_test
39 changes: 39 additions & 0 deletions .github/workflows/ci_humble.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci_humble

on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, labeled]

jobs:
ci:
runs-on: ${{ matrix.os }}
if: |
((github.event.action == 'labeled') &&
(github.event.label.name == 'TESTING')) ||
((github.event.action == 'synchronize') &&
contains(github.event.pull_request.labels.*.name, 'TESTING')) ||
(github.ref == 'refs/heads/main')
container:
image: osrf/ros:${{ matrix.ros_distribution }}-desktop
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
ros_distribution: [humble]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y wget python3-vcstool python3-colcon-coveragepy-result
- name: Build and Test
uses: ros-tooling/action-ros-ci@v0.2
with:
target-ros2-distro: ${{ matrix.ros_distribution }}
import-token: ${{ secrets.GITHUB_TOKEN }}
package-name: |
p9n_interface
p9n_example
p9n_test
58 changes: 0 additions & 58 deletions .github/workflows/lint.yml

This file was deleted.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ PlayStation Joy Controller Interface Package for ROS2.
| :heavy_check_mark: | `DualShock4` |
| :heavy_check_mark: | `DualSense` |

## Repository Status

| ROS2 Distro | Branch | Build status |
| --- | --- | --- |
| **galactic** | [`galactic`](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/tree/galactic) | [![Galactic CI](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_galactic.yml/badge.svg?branch=main)](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_galactic.yml?branch=main)
| **humble** | [`humble`](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/tree/humble) | [![Humble CI](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_humble.yml/badge.svg?branch=main)](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_humble.yml?branch=main)


## How to use the interface library
1. Initialize controller interface with the specific hardware type.
Expand Down