-
Notifications
You must be signed in to change notification settings - Fork 109
122 lines (121 loc) · 3.22 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# DO NOT EDIT - GENERATED FROM .github/workflows/clang_tidy.ys
name: clang_tidy
defaults:
run:
shell: bash -e -x {0}
'on':
workflow_dispatch: null
push:
branches:
- master
pull_request:
branches:
- master
env:
PROJ_PFX_TARGET: ryml-
PROJ_PFX_CMAKE: RYML_
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON
NUM_JOBS_BUILD: null
jobs:
clang_tidy:
if: always()
continue-on-error: false
runs-on: ubuntu-latest
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
strategy:
fail-fast: false
matrix:
include:
- std: 11
clang: 18
bt: Debug
bits: 64
env:
STD: ${{matrix.std}}
CXX_: ${{matrix.cxx}}
BT: ${{matrix.bt}}
BITLINKS: ${{matrix.bitlinks}}
VG: ${{matrix.vg}}
SAN: ${{matrix.san}}
LINT: ${{matrix.lint}}
OS: ${{matrix.os}}
steps:
- name: checkout (action + docker)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- run: git config --system --add safe.directory '*'
- name: install
run: c4core-install clang++-${{matrix.clang}}
- name: configure
run: |
cmake -S . -B build \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_CXX_COMPILER=clang++-${{matrix.clang}} \
-DCMAKE_C_COMPILER=clang-${{matrix.clang}} \
-DCLANG_TIDY=/usr/bin/clang-tidy-${{matrix.clang}} \
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \
-DRYML_DEV=ON \
-DRYML_VALGRIND=OFF \
-DRYML_BUILD_TESTS=OFF \
-DRYML_BUILD_BENCHMARKS=OFF \
-DRYML_DBG=OFF
- name: clang-tidy
run: cmake --build build --target ryml-clang-tidy --verbose
analyzer:
if: always()
continue-on-error: false
name: analyzer/${{matrix.bits}}bit
runs-on: ubuntu-latest
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
strategy:
fail-fast: false
matrix:
include:
- std: 11
gcc: 14
bits: 64
bt: Debug
img: 22.04
- std: 11
gcc: 14
bits: 64
bt: Release
img: 22.04
- std: 11
gcc: 14
bits: 32
bt: Debug
img: 22.04
- std: 11
gcc: 14
bits: 32
bt: Release
img: 22.04
steps:
- name: checkout (action + docker)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- run: git config --system --add safe.directory '*'
- name: install
run: c4core-install g++-${{matrix.gcc}}
- name: configure
run: |
cmake -S . =B build \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_GCC_COMPILER=g++-${{matrix.gcc}} \
-DCMAKE_C_COMPILER=gcc-${{matrix.gcc}} \
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \
-DRYML_DEV=ON \
-DRYML_VALGRIND=OFF \
-DRYML_BUILD_TESTS=ON \
-DRYML_BUILD_BENCHMARKS=OFF \
-DRYML_DBG=OFF \
-DRYML_FANALYZER=ON
- name: build
run: cmake --build build --target ryml-test-build --parallel --verbose
- name: run
run: cmake --build build --target ryml-test-run --verbose