Skip to content

Commit da487af

Browse files
authored
Merge pull request #624 from biojppm/ci/fixes
CI: update to clang-tidy 22, fixes, updates
2 parents de1bc78 + a6b181c commit da487af

37 files changed

Lines changed: 287 additions & 341 deletions

.clang-tidy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ Checks:
7979
- -modernize-type-traits # use c++17 style variable templates
8080
- -modernize-use-auto # use auto when initializing with a cast to avoid duplicating the type name
8181
- -modernize-use-default-member-init # use default member initializer for 'm_pos'
82+
- -modernize-use-designated-initializers
8283
- -modernize-use-nodiscard # function 'valid' should be marked nodiscard
84+
- -modernize-use-std-print
8385
- -modernize-use-trailing-return-type # don't care about this
8486
- -modernize-use-using # use 'using' instead of 'typedef'
8587
- -performance-enum-size # enum '_ppstate' uses a larger base type ('int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size
@@ -98,6 +100,7 @@ Checks:
98100
- -readability-redundant-access-specifiers # redundant access specifier has the same accessibility as the previous access specifier
99101
- -readability-redundant-member-init # initializer for member 'm_arena' is redundant
100102
- -readability-redundant-parentheses # redundant parentheses around expression
103+
- -readability-redundant-typename
101104
- -readability-simplify-boolean-expr # boolean expression can be simplified by DeMorgan's theorem
102105
- -readability-suspicious-call-argument # 1st argument 'after' (passed to 'node') looks like it might be swapped with the 2nd, 'node' (passed to 'sib')
103106
- -readability-uppercase-literal-suffix # integer literal has suffix 'u', which is not uppercase

.github/workflows/bash/clang-checkout.bash

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/benchmarks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: checkout (action)
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727
with:
2828
submodules: recursive
2929
fetch-depth: 0
@@ -61,7 +61,7 @@ jobs:
6161
export SRC_VERSION=$SRC_VERSION
6262
EOF
6363
- name: Save vars.sh
64-
uses: actions/upload-artifact@v4
64+
uses: actions/upload-artifact@v7
6565
with:
6666
name: vars.sh
6767
path: ./vars.sh
@@ -123,12 +123,12 @@ jobs:
123123
OS: ${{matrix.os}}
124124
steps:
125125
- name: checkout (action)
126-
uses: actions/checkout@v4
126+
uses: actions/checkout@v6
127127
with:
128128
submodules: recursive
129129
fetch-depth: 0
130130
- name: Download vars.sh
131-
uses: actions/download-artifact@v4
131+
uses: actions/download-artifact@v7
132132
with:
133133
name: vars.sh
134134
path: ./
@@ -196,7 +196,7 @@ jobs:
196196
mv -vf build/$bl/bm/bm-results/* $dst/.
197197
done
198198
- name: upload benchmark result artifacts
199-
uses: actions/upload-artifact@v4
199+
uses: actions/upload-artifact@v7
200200
with:
201201
name: ryml-benchmark_results-${{strategy.job-index}}
202202
path: ryml-benchmark_results/

.github/workflows/benchmarks.ys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
mv -vf build/$bl/bm/bm-results/* $dst/.
7171
done
7272
- name: upload benchmark result artifacts
73-
uses: actions/upload-artifact@v4
73+
uses: actions/upload-artifact@v7
7474
with:
7575
name: ryml-benchmark_results-${{strategy.job-index}}
7676
path: ryml-benchmark_results/

.github/workflows/clang.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
bitlinks: shared64 static32
4040
steps:
4141
- name: checkout (action + docker)
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4343
with:
4444
submodules: recursive
4545
fetch-depth: 0
@@ -112,7 +112,7 @@ jobs:
112112
bitlinks: shared64 static32
113113
steps:
114114
- name: checkout (action + docker)
115-
uses: actions/checkout@v4
115+
uses: actions/checkout@v6
116116
with:
117117
submodules: recursive
118118
fetch-depth: 0
@@ -186,7 +186,7 @@ jobs:
186186
bitlinks: shared64 static32
187187
steps:
188188
- name: checkout (action + docker)
189-
uses: actions/checkout@v4
189+
uses: actions/checkout@v6
190190
with:
191191
submodules: recursive
192192
fetch-depth: 0
@@ -260,7 +260,7 @@ jobs:
260260
bitlinks: shared64 static32
261261
steps:
262262
- name: checkout (action + docker)
263-
uses: actions/checkout@v4
263+
uses: actions/checkout@v6
264264
with:
265265
submodules: recursive
266266
fetch-depth: 0
@@ -1303,7 +1303,7 @@ jobs:
13031303
OS: ${{matrix.os}}
13041304
steps:
13051305
- name: checkout (action + docker)
1306-
uses: actions/checkout@v4
1306+
uses: actions/checkout@v6
13071307
with:
13081308
submodules: recursive
13091309
fetch-depth: 0

.github/workflows/clang.ys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
# env:: load('share/env.yaml')
220220
#
221221
# steps:
222-
# - {name: checkout, uses: actions/checkout@v4,
222+
# - {name: checkout, uses: actions/checkout@v6,
223223
# with: {submodules: recursive}}
224224
# # needed for running in the docker image.
225225
# # see https://github.com/actions/checkout/issues/1169

.github/workflows/clang_tidy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
if: always()
2424
continue-on-error: false
2525
runs-on: ubuntu-24.04
26-
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
26+
container: ghcr.io/biojppm/c4core/ubuntu24.04:latest
2727
name: clang_tidy/c++${{matrix.std}}/${{matrix.bt}}
2828
strategy:
2929
fail-fast: false
3030
matrix:
3131
include:
3232
- std: 11
33-
clang: 18
33+
clang: 22
3434
bt: Debug
3535
bits: 64
3636
env:
@@ -44,7 +44,7 @@ jobs:
4444
OS: ${{matrix.os}}
4545
steps:
4646
- name: checkout (action + docker)
47-
uses: actions/checkout@v4
47+
uses: actions/checkout@v6
4848
with:
4949
submodules: recursive
5050
fetch-depth: 0

.github/workflows/clang_tidy.ys

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
jobs:
77
clang_tidy:
8-
:: setup-job('clang_tidy' 'clang_tidy') + runs-on-docker-c4core('22.04')
8+
:: setup-job('clang_tidy' 'clang_tidy') + runs-on-docker-c4core('24.04')
99
name: clang_tidy/c++${{matrix.std}}/${{matrix.bt}}
1010
strategy:
1111
fail-fast: false
1212
matrix:
1313
include:
14-
- {std: 11, clang: 18, bt: Debug, bits: 64}
14+
- {std: 11, clang: 22, bt: Debug, bits: 64}
1515
env:: load('share/env.yaml')
1616
steps:
1717
- :: checkout-action-docker

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- cpp
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
with:
3030
submodules: recursive
3131
- name: Initialize CodeQL

.github/workflows/codeql.ys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
submodules: recursive
3030

0 commit comments

Comments
 (0)