-
-
Notifications
You must be signed in to change notification settings - Fork 307
68 lines (58 loc) · 1.49 KB
/
clang.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
name: clang
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
env:
- { NAME: "nothing" }
- { NAME: "libde265 (1) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 1 }
- { NAME: "libde265 (2) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 2 }
env: ${{ matrix.env }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
./scripts/install-ci-linux.sh
sudo apt install clang
- name: Prepare CI
env:
CC: clang
CXX: clang++
run: |
./scripts/prepare-ci.sh
- name: Run tests
env:
CC: clang
CXX: clang++
run: |
./scripts/run-ci.sh
tidy:
env:
WITH_GRAPHICS: 1
WITH_X265: 1
WITH_AOM: 1
WITH_DAV1D: 1
WITH_LIBDE265: 1
CLANG_TIDY: 1
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
./scripts/install-ci-linux.sh
sudo apt install clang-tidy-12
- name: Prepare CI
run: |
./scripts/prepare-ci.sh
- name: Run tests
run: |
./scripts/run-ci.sh
- name: Run clang-tidy
run: |
run-clang-tidy-12 -checks=-clang-diagnostic-tautological-compare,-clang-diagnostic-tautological-constant-out-of-range-compare -j$(nproc)