Skip to content

Commit

Permalink
added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antbono committed Apr 11, 2024
1 parent 0c69e25 commit aa6c058
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Set update schedule for GitHub Actions
# (https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot)

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
43 changes: 43 additions & 0 deletions .github/workflows/build_and_test_humble.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: Build (humble)

# Controls when the action will run.
on:
# Triggers the workflow on push
push:
branches: [ main ]

# Triggers the workflow on pull requests
pull_request:
branches: [ main ]

# 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:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
container:
image: ubuntu:jammy

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
#with:
# use-ros2-testing: true
- uses: ros-tooling/[email protected]
with:
skip-tests: true
target-ros2-distro: humble
colcon-defaults: |
{
"build": {
"symlink-install": false
}
}
vcs-repo-file-url: dependencies.repos
43 changes: 43 additions & 0 deletions .github/workflows/build_and_test_iron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: Build (iron)

# Controls when the action will run.
on:
# Triggers the workflow on push
push:
branches: [ main ]

# Triggers the workflow on pull requests
pull_request:
branches: [ main ]

# 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:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
container:
image: ubuntu:jammy

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
#with:
# use-ros2-testing: true
- uses: ros-tooling/[email protected]
with:
skip-tests: true
target-ros2-distro: iron
colcon-defaults: |
{
"build": {
"symlink-install": false
}
}
vcs-repo-file-url: dependencies.repos
37 changes: 37 additions & 0 deletions .github/workflows/build_and_test_rolling.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: Build (rolling)

# Controls when the action will run.
on:
# Triggers the workflow on push
push:
branches: [ main ]

# Triggers the workflow on pull requests
pull_request:
branches: [ main ]

# 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:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: ubuntu:noble

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/setup-ros@master
with:
use-ros2-testing: true
- uses: ros-tooling/action-ros-ci@master
with:
skip-tests: true
target-ros2-distro: rolling
vcs-repo-file-url: dependencies.repos
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[![Build (humble)](https://github.com/antbono/nao_led/actions/workflows/build_and_test_humble.yaml/badge.svg)](https://github.com/antbono/nao_led/actions/workflows/build_and_test_humble.yaml)
[![Build (iron)](https://github.com/antbono/nao_led/actions/workflows/build_and_test_iron.yaml/badge.svg)](https://github.com/antbono/nao_led/actions/workflows/build_and_test_iron.yaml)
[![Build (rolling)](https://github.com/antbono/nao_led/actions/workflows/build_and_test_rolling.yaml/badge.svg)](https://github.com/antbono/nao_led/actions/workflows/build_and_test_rolling.yaml)

# nao_led

This package is part of the [Open Access NAO](https://github.com/antbono/OAN) framework.

It manages NAO v6 leds through [nao_lola](https://github.com/ros-sports/nao_lola).
It manages NAO v6 leds through the [nao_lola](https://github.com/ros-sports/nao_lola) package from [ROS Sports](https://ros-sports.readthedocs.io/en/latest/).


## Main features
Expand All @@ -13,7 +17,7 @@ At the moment, you can exploit the package for the following activities:

- *Blinking any led with the desired frequency*

- *Looping any led with the desired frequency*
- *Turn LEDs on or off so as to show a 'rotating' animation*


For more info, please refer to the related [paper](https://arxiv.org/abs/2403.13960).
5 changes: 5 additions & 0 deletions dependencies.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repositories:
nao_lola:
type: git
url: https://github.com/ros-sports/nao_lola.git
version: rolling

0 comments on commit aa6c058

Please sign in to comment.