Skip to content

Commit f889645

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

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)