File tree 7 files changed +59
-6
lines changed
7 files changed +59
-6
lines changed Original file line number Diff line number Diff line change 12
12
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
13
13
shell : bash
14
14
working-directory : build
15
-
Original file line number Diff line number Diff line change 7
7
run : ctest --output-on-failure
8
8
shell : bash
9
9
working-directory : build
10
-
Original file line number Diff line number Diff line change 8
8
git clone --quiet --depth 1 https://github.com/osmcode/libosmium.git ../libosmium
9
9
git clone --quiet --depth 1 https://github.com/mapbox/protozero.git ../protozero
10
10
shell : bash
11
-
Original file line number Diff line number Diff line change 9
9
gdal \
10
10
spatialite-tools
11
11
shell : bash
12
-
Original file line number Diff line number Diff line change 13
13
pandoc \
14
14
spatialite-bin
15
15
shell : bash
16
-
Original file line number Diff line number Diff line change @@ -221,4 +221,3 @@ jobs:
221
221
- uses : ./.github/actions/cmake
222
222
- uses : ./.github/actions/build
223
223
- uses : ./.github/actions/ctest
224
-
Original file line number Diff line number Diff line change
1
+ name : clang-tidy
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ clang-tidy :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ image : ["debian:bookworm", "debian:testing", "debian:experimental"]
12
+ include :
13
+ - image : " debian:bookworm"
14
+ clang : 15
15
+ - image : " debian:testing"
16
+ clang : 19
17
+ - image : " debian:experimental"
18
+ clang : 20
19
+ container :
20
+ image : ${{ matrix.image }}
21
+ env :
22
+ BUILD_TYPE : Dev
23
+ CC : clang-${{ matrix.clang }}
24
+ CXX : clang++-${{ matrix.clang }}
25
+ CPP_VERSION : c++14
26
+ APT_LISTCHANGES_FRONTEND : none
27
+ DEBIAN_FRONTEND : noninteractive
28
+ steps :
29
+ - name : Prepare container (apt)
30
+ run : |
31
+ apt-get update -qq
32
+ apt-get install -yq \
33
+ clang-${{ matrix.clang }} \
34
+ clang-tidy-${{ matrix.clang }} \
35
+ cmake \
36
+ git \
37
+ libbz2-dev \
38
+ libexpat1-dev \
39
+ libgdal-dev \
40
+ libgeos-dev \
41
+ liblz4-dev \
42
+ make \
43
+ zlib1g-dev
44
+ shell : bash
45
+ - uses : actions/checkout@v4
46
+ with :
47
+ submodules : true
48
+ - uses : ./.github/actions/install-protozero
49
+ - uses : ./.github/actions/cmake
50
+ - name : Run clang-tidy
51
+ run : make clang-tidy | tee osmcoastline-${{ github.sha }}-clang-tidy-${{ matrix.clang }}.log
52
+ shell : bash
53
+ working-directory : build
54
+ - name : Upload clang-tidy log
55
+ uses : actions/upload-artifact@v4
56
+ if : always()
57
+ with :
58
+ name : osmcoastline-${{ github.sha }}-clang-tidy-${{ matrix.clang }}-log
59
+ path : build/osmcoastline-${{ github.sha }}-clang-tidy-${{ matrix.clang }}.log
You can’t perform that action at this time.
0 commit comments