Skip to content

Commit 2af0e83

Browse files
committed
[capability] Add GitHub CI config
1 parent 391449a commit 2af0e83

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
# direct pushes to protected branches are not supported
5+
pull_request:
6+
push:
7+
workflow_dispatch:
8+
9+
jobs:
10+
i_ci:
11+
name: ubuntu_bionic (${{ matrix.ros_repo }})
12+
runs-on: ubuntu-18.04
13+
14+
strategy:
15+
matrix:
16+
ros_distro: [ melodic ]
17+
ros_repo: [ main, testing ]
18+
19+
env:
20+
CCACHE_DIR: "${{ github.workspace }}/.ccache"
21+
CATKIN_LINT: "true"
22+
CATKIN_LINT_ARGS: --ignore launch_depend
23+
24+
steps:
25+
- name: Fetch repository
26+
uses: actions/checkout@v2
27+
28+
- name: ccache cache
29+
uses: actions/cache@v2
30+
with:
31+
path: ${{ env.CCACHE_DIR }}
32+
# we always want the ccache cache to be persisted, as we cannot easily
33+
# determine whether dependencies have changed, and ccache will manage
34+
# updating the cache for us. Adding 'run_id' to the key will force an
35+
# upload at the end of the job.
36+
key: ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}-${{github.run_id}}
37+
restore-keys: |
38+
ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}
39+
40+
- name: Run industrial_ci
41+
uses: ros-industrial/industrial_ci@master
42+
env:
43+
ROS_DISTRO: ${{ matrix.ros_distro }}
44+
ROS_REPO: ${{ matrix.ros_repo }}

0 commit comments

Comments
 (0)