-
Notifications
You must be signed in to change notification settings - Fork 108
67 lines (66 loc) · 1.75 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
# 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-24.04
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
name: clang_tidy/c++${{matrix.std}}/${{matrix.bt}}
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