-
Notifications
You must be signed in to change notification settings - Fork 1.8k
48 lines (42 loc) · 1.17 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
name: Review
on:
pull_request_target:
types: [labeled]
jobs:
build:
name: Clang-tidy Check
runs-on: self-hosted
if: ${{ github.event.label.name == 'be-build' }}
env:
PR_NUMBER: ${{ github.event.number }}
steps:
- name: pre build
run: |
sudo rm -rf ../starrocks/*
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
be:
- 'be/**'
- uses: actions/checkout@v3
if: steps.changes.outputs.be == 'true'
with:
fetch-depth: 0
- name: set up build
if: steps.changes.outputs.be == 'true'
run: |
time scp jenkins@ci01:~/userContent/be-build-$PR_NUMBER.tar.gz .
tar xzf be-build-$PR_NUMBER.tar.gz
workdir=$(pwd)
echo $workdir
sed -i "s|\/root\/starrocks|$workdir|g" be/ut_build_ASAN/compile_commands.json
- uses: ZedThree/[email protected]
if: steps.changes.outputs.be == 'true'
id: review
with:
build_dir: be/build_Release
config_file: .clang-tidy
- name: post build
run: |
sudo rm -rf ../starrocks/*