forked from tesseract-robotics/tesseract_planning
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (63 loc) · 2.14 KB
/
clang_tidy.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
64
65
66
67
68
69
70
71
name: Clang-Tidy
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 5 * * *'
jobs:
industrial_ci:
name: ClangTidy
runs-on: ubuntu-latest
env:
CI_NAME: Clang-Tidy
ROS_DISTRO: noetic
REGISTRY: ghcr.io
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Free disk space
continue-on-error: true
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
continue-on-error: true
uses: actions/[email protected]
with:
path: ${{ env.CI_NAME }}/.ccache
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ env.CI_NAME }}-ccache-
- name: Login to Github container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build repository
uses: 'ros-industrial/industrial_ci@master'
env:
OS_NAME: ubuntu
OS_CODE_NAME: focal
DOCKER_IMAGE: ${{ env.REGISTRY }}/tesseract-robotics/tesseract:${{ env.ROS_DISTRO }}-0.10
CCACHE_DIR: ${{ github.workspace }}/${{ env.CI_NAME }}/.ccache
ROS_REPO: main
UNDERLAY: /root//tesseract-robotics/tesseract_target_ws/install
PREFIX: ${{ github.repository }}_
UPSTREAM_WORKSPACE: 'dependencies.rosinstall'
ROSDEP_SKIP_KEYS: "bullet ros_industrial_cmake_boilerplate iwyu fcl taskflow"
NOT_TEST_BUILD: true
UPSTREAM_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Release"
TARGET_CMAKE_ARGS: "-DTESSERACT_ENABLE_CLANG_TIDY=ON -DTESSERACT_ENABLE_TESTING=ON"
AFTER_SCRIPT: ""