Skip to content

Commit 627afbc

Browse files
committed
Capability: [CI] Add GitHub Action, for ROS Melodic, Noetic
1 parent 84fec60 commit 627afbc

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)