-
-
Notifications
You must be signed in to change notification settings - Fork 108
58 lines (56 loc) · 1.66 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
name: clang-tidy
on: workflow_dispatch
jobs:
clang-tidy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: ["debian:bookworm", "debian:testing", "debian:experimental"]
include:
- image: "debian:bookworm"
clang: 15
- image: "debian:testing"
clang: 19
- image: "debian:experimental"
clang: 20
container:
image: ${{ matrix.image }}
env:
BUILD_TYPE: Dev
CC: clang-${{ matrix.clang }}
CXX: clang++-${{ matrix.clang }}
CPP_VERSION: c++14
APT_LISTCHANGES_FRONTEND: none
DEBIAN_FRONTEND: noninteractive
steps:
- name: Prepare container (apt)
run: |
apt-get update -qq
apt-get install -yq \
clang-${{ matrix.clang }} \
clang-tidy-${{ matrix.clang }} \
cmake \
git \
libboost-dev \
libboost-program-options-dev \
libbz2-dev \
libexpat1-dev \
liblz4-dev \
make \
nlohmann-json3-dev \
zlib1g-dev
shell: bash
- uses: actions/checkout@v4
- uses: ./.github/actions/install-from-git
- uses: ./.github/actions/cmake
- name: Run clang-tidy
run: make clang-tidy | tee osmium-tool-clang-tidy-${{ matrix.clang }}.log
shell: bash
working-directory: build
- name: Upload clang-tidy log
uses: actions/upload-artifact@v4
if: always()
with:
name: osmium-tool-clang-tidy-${{ matrix.clang }}-log
path: build/osmium-tool-clang-tidy-${{ matrix.clang }}.log