-
Notifications
You must be signed in to change notification settings - Fork 23
63 lines (58 loc) · 1.97 KB
/
industrial_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: ROS-Industrial CI
run-name: ROS-Industrial CI - ${{ github.event_name }}
# This determines when this workflow is run
# on: [push, pull_request] # on all pushes and PRs
# or more fine-grained
on:
push:
branches:
- master
- feature/**
- fix/**
paths-ignore:
- doc/**
- '**.md'
- LICENSE
- .github/workflows/deploy_wiki.yml
# When there is a pull request against master
pull_request:
branches:
- master
schedule:
# Run every Monday at 1PM UTC
- cron: 0 13 * * 1
jobs:
industrial_ci:
name: ROS-Industrial CI
env:
ROS_REPO: ros
BUILDER: colcon
ANALYZER: sonarqube
TEST_COVERAGE: true
UPSTREAM_WORKSPACE: 'github:kroshu/kuka_robot_descriptions#feature/fri_wrench_control github:kroshu/kuka-external-control-sdk#master'
ROS_DISTRO: jazzy
CCACHE_DIR: /github/home/.ccache # Directory for ccache (and how we enable ccache in industrial_ci)
EVENT_NAME: ${{ github.event_name }}
BRANCH: ${{ github.event.ref }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_BASE: ${{ github.event.pull_request.base.ref }}
PR_NUMBER: ${{ github.event.number }}
ANALYZER_TOKEN: ${{ secrets.ANALYZER_TOKEN }}
DEBUG_BASH: true
runs-on: ubuntu-24.04
steps:
- name: Reset ANALYZER for scheduled and push runs
run: |
if [[ "${{ github.event_name }}" == "schedule" ]] || { [[ "${{ github.event_name }}" == "push" ]] && [[ "${{ github.ref }}" != "refs/heads/master" ]]; }; then
echo "ANALYZER=" >> $GITHUB_ENV
fi
- uses: actions/checkout@v2
with:
fetch-depth: 0
# This step will fetch/store the directory used by ccache before/after the ci run
- uses: actions/cache@v2
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
# Run industrial_ci
- uses: 'kroshu/industrial_ci@master'