Skip to content

Commit b55c10d

Browse files
authored
Add ROS-CI (#229)
* Add ROS-CI using GitHub Actions based on Industrial-CI * [CI] Rename ROS-CI
1 parent aef2a9a commit b55c10d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ros_ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
2+
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
3+
4+
name: ROS-CI
5+
6+
# This determines when this workflow is run
7+
on: [push, pull_request] # on all pushes and PRs
8+
9+
jobs:
10+
CI:
11+
strategy:
12+
matrix:
13+
env:
14+
- {ROS_DISTRO: melodic}
15+
- {ROS_DISTRO: noetic}
16+
env:
17+
CCACHE_DIR: /github/home/.ccache # Enable ccache
18+
BUILDER: catkin_tools
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
# This step will fetch/store the directory used by ccache before/after the ci run
25+
- uses: actions/cache@v2
26+
with:
27+
path: ${{ env.CCACHE_DIR }}
28+
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
29+
# Run industrial_ci
30+
- uses: 'ros-industrial/industrial_ci@master'
31+
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)