Skip to content

Commit e212208

Browse files
committed
Add CI
1 parent 96a6bb5 commit e212208

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behaviour:
15+
1. Clone repo '...'
16+
2. Add these lines '...'
17+
3. Run the script '....'
18+
4. See error
19+
Code or shell commands ready to be copy-pasted are welcome.
20+
21+
**Expected behaviour**
22+
A clear and concise description of what you expected to happen.
23+
24+
**System information (please complete the following information):**
25+
- OS: [e.g. WIndows 10, Ubuntu 16.04, ...]
26+
- ROS 2 [e.g. Dashing, Crystal, ...]
27+
- Version [e.g. commit hash, tag, ...]
28+
29+
**Additional context**
30+
Add any other context about the problem here.

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI micro_ros_arduino
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
10+
rmw_microxrcedds_ci:
11+
runs-on: ubuntu-20.04
12+
container: ubuntu:20.04
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
path: src/rmw-microxrcedds
18+
19+
- name: Download dependencies
20+
run: |
21+
apt update
22+
apt install git curl
23+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
24+
mkdir -p /root/Arduino/libraries/micro_ros_arduino-0.0.1/
25+
26+
- uses: actions/checkout@v2
27+
with:
28+
path: /root/Arduino/libraries/micro_ros_arduino-0.0.1/
29+
30+
- name: Build sample OpenCR
31+
run: |
32+
echo '''board_manager:
33+
additional_urls:
34+
- https://raw.githubusercontent.com/ROBOTIS-GIT/OpenCR/master/arduino/opencr_release/package_opencr_index.json''' > arduino-cli.yaml
35+
arduino-cli core update-index
36+
arduino-cli core install OpenCR:OpenCR
37+
arduino-cli compile --fqbn OpenCR:OpenCR:OpenCR /root/Arduino/libraries/micro_ros_arduino-0.0.1/examples/micro-ros_publisher -v

0 commit comments

Comments
 (0)