Skip to content

Commit fd3ac4d

Browse files
committed
Merge branch 'main' into suppression-filename-cache
2 parents 715c90e + 2e19539 commit fd3ac4d

179 files changed

Lines changed: 6706 additions & 1129 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CI-cygwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ${{ matrix.os }}
3838

3939
steps:
40-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v6
4141
with:
4242
persist-credentials: false
4343

.github/workflows/CI-mingw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
timeout-minutes: 19 # max + 3*std of the last 7K runs
3434

3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v6
3737
with:
3838
persist-credentials: false
3939

.github/workflows/CI-unixish-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
image: ${{ matrix.image }}
4444

4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v6
4747
with:
4848
persist-credentials: false
4949

@@ -96,7 +96,7 @@ jobs:
9696
image: ${{ matrix.image }}
9797

9898
steps:
99-
- uses: actions/checkout@v4
99+
- uses: actions/checkout@v6
100100
with:
101101
persist-credentials: false
102102

.github/workflows/CI-unixish.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
CCACHE_SLOPPINESS: pch_defines,time_macros
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v6
3434
with:
3535
persist-credentials: false
3636

@@ -85,7 +85,7 @@ jobs:
8585
CCACHE_SLOPPINESS: pch_defines,time_macros
8686

8787
steps:
88-
- uses: actions/checkout@v4
88+
- uses: actions/checkout@v6
8989
with:
9090
persist-credentials: false
9191

@@ -97,7 +97,7 @@ jobs:
9797
# TODO: move latest compiler to separate step
9898
# TODO: bail out on warnings with latest GCC
9999
- name: Set up GCC
100-
uses: egor-tensin/setup-gcc@v1
100+
uses: egor-tensin/setup-gcc@v2
101101
if: false # matrix.os == 'ubuntu-22.04'
102102
with:
103103
version: 13
@@ -150,6 +150,7 @@ jobs:
150150
- name: Run CMake install
151151
run: |
152152
cmake --build cmake.output --target install
153+
# TODO: validate the installed files
153154
154155
- name: Run CMake on ubuntu (no CLI)
155156
if: matrix.os == 'ubuntu-22.04'
@@ -215,7 +216,7 @@ jobs:
215216
CCACHE_SLOPPINESS: pch_defines,time_macros
216217

217218
steps:
218-
- uses: actions/checkout@v4
219+
- uses: actions/checkout@v6
219220
with:
220221
persist-credentials: false
221222

@@ -264,7 +265,7 @@ jobs:
264265
runs-on: ${{ matrix.os }}
265266

266267
steps:
267-
- uses: actions/checkout@v4
268+
- uses: actions/checkout@v6
268269
with:
269270
persist-credentials: false
270271

@@ -298,7 +299,7 @@ jobs:
298299
runs-on: ${{ matrix.os }}
299300

300301
steps:
301-
- uses: actions/checkout@v4
302+
- uses: actions/checkout@v6
302303
with:
303304
persist-credentials: false
304305

@@ -332,7 +333,7 @@ jobs:
332333
runs-on: ${{ matrix.os }}
333334

334335
steps:
335-
- uses: actions/checkout@v4
336+
- uses: actions/checkout@v6
336337
with:
337338
persist-credentials: false
338339

@@ -360,7 +361,7 @@ jobs:
360361
CCACHE_SLOPPINESS: pch_defines,time_macros
361362

362363
steps:
363-
- uses: actions/checkout@v4
364+
- uses: actions/checkout@v6
364365
with:
365366
persist-credentials: false
366367

@@ -416,7 +417,7 @@ jobs:
416417
CMAKE_VERSION_FULL: 3.22.6
417418

418419
steps:
419-
- uses: actions/checkout@v4
420+
- uses: actions/checkout@v6
420421
with:
421422
persist-credentials: false
422423

@@ -460,7 +461,7 @@ jobs:
460461
runs-on: ${{ matrix.os }}
461462

462463
steps:
463-
- uses: actions/checkout@v4
464+
- uses: actions/checkout@v6
464465
with:
465466
persist-credentials: false
466467

@@ -711,7 +712,7 @@ jobs:
711712
runs-on: ubuntu-22.04 # run on the latest image only
712713

713714
steps:
714-
- uses: actions/checkout@v4
715+
- uses: actions/checkout@v6
715716
with:
716717
persist-credentials: false
717718

.github/workflows/CI-windows.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ${{ matrix.os }}
3232

3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v6
3535
with:
3636
persist-credentials: false
3737

@@ -51,24 +51,26 @@ jobs:
5151
- name: Run CMake
5252
run: |
5353
rem TODO: enable rules?
54-
rem specify Release build so matchcompiler is used
55-
cmake -S . -B build -Werror=dev --warn-uninitialized -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_TESTING=Off -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
54+
cmake -S . -B build -Werror=dev --warn-uninitialized -DCMAKE_BUILD_TYPE=Debug -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_TESTING=Off -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DISABLE_DMAKE=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
5655
57-
- name: Build GUI release
56+
- name: Build GUI
5857
run: |
59-
cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel!
58+
cmake --build build --config Debug --target cppcheck-gui || exit /b !errorlevel!
6059
60+
# TODO: can this be done in CMake?
6161
- name: Deploy GUI
6262
run: |
63-
windeployqt build\bin\Release || exit /b !errorlevel!
64-
del build\bin\Release\cppcheck-gui.ilk || exit /b !errorlevel!
65-
del build\bin\Release\cppcheck-gui.pdb || exit /b !errorlevel!
63+
windeployqt --no-translations build\bin\Debug || exit /b !errorlevel!
64+
del build\bin\Debug\cppcheck-gui.pdb || exit /b !errorlevel!
6665
6766
# TODO: run GUI tests
6867

6968
- name: Run CMake install
7069
run: |
71-
cmake --build build --target install
70+
rem TODO: the Qt DLLs are not being installed
71+
cmake --build build --config Debug --target install
72+
rem TODO: validate the installed files
73+
rem TODO: the structure does not match an actual Windows installation
7274
7375
build_cmake_cxxstd:
7476
strategy:
@@ -80,7 +82,7 @@ jobs:
8082
runs-on: ${{ matrix.os }}
8183

8284
steps:
83-
- uses: actions/checkout@v4
85+
- uses: actions/checkout@v6
8486
with:
8587
persist-credentials: false
8688

@@ -106,7 +108,7 @@ jobs:
106108
CMAKE_VERSION_FULL: 3.22.6
107109

108110
steps:
109-
- uses: actions/checkout@v4
111+
- uses: actions/checkout@v6
110112
with:
111113
persist-credentials: false
112114

@@ -152,13 +154,13 @@ jobs:
152154
PCRE_VERSION: 8.45
153155

154156
steps:
155-
- uses: actions/checkout@v4
157+
- uses: actions/checkout@v6
156158
with:
157159
persist-credentials: false
158160

159161
- name: Set up Python
160162
if: matrix.config == 'release'
161-
uses: actions/setup-python@v5
163+
uses: actions/setup-python@v6
162164
with:
163165
python-version: '3.14'
164166
check-latest: true
@@ -170,7 +172,7 @@ jobs:
170172

171173
- name: Cache PCRE
172174
id: cache-pcre
173-
uses: actions/cache@v4
175+
uses: actions/cache@v5
174176
with:
175177
path: |
176178
externals\pcre.h

.github/workflows/buildman.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
convert_via_pandoc:
2020
runs-on: ubuntu-24.04
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
with:
2424
persist-credentials: false
2525

@@ -38,15 +38,15 @@ jobs:
3838
with:
3939
args: --output=output/manual-premium.pdf man/manual-premium.md
4040

41-
- uses: actions/upload-artifact@v4
41+
- uses: actions/upload-artifact@v7
4242
with:
4343
name: output
4444
path: output
4545

4646
manpage:
4747
runs-on: ubuntu-22.04
4848
steps:
49-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v6
5050
with:
5151
persist-credentials: false
5252

@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
make man
6161
62-
- uses: actions/upload-artifact@v4
62+
- uses: actions/upload-artifact@v7
6363
with:
6464
name: cppcheck.1
6565
path: cppcheck.1

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
dry-run: false
2828
language: c++
2929
- name: Upload Crash
30-
uses: actions/upload-artifact@v4
30+
uses: actions/upload-artifact@v7
3131
if: failure() && steps.build.outcome == 'success'
3232
with:
3333
name: artifacts

.github/workflows/clang-tidy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
QT_VERSION: 6.10.0
2828

2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3131
with:
3232
persist-credentials: false
3333

@@ -86,7 +86,7 @@ jobs:
8686
run: |
8787
cmake --build cmake.output --target run-clang-tidy-csa 2> /dev/null
8888
89-
- uses: actions/upload-artifact@v4
89+
- uses: actions/upload-artifact@v7
9090
if: success() || failure()
9191
with:
9292
name: Compilation Database

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333

3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737
with:
3838
persist-credentials: false
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v3
42+
uses: github/codeql-action/init@v4
4343
with:
4444
languages: ${{ matrix.language }}
4545

@@ -49,4 +49,4 @@ jobs:
4949
make -j$(nproc) CXXOPTS="-Werror" HAVE_RULES=yes CPPCHK_GLIBCXX_DEBUG= cppcheck
5050
5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v3
52+
uses: github/codeql-action/analyze@v4

.github/workflows/corpus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: ${{ github.repository_owner == 'cppcheck-opensource' }}
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
with:
2121
persist-credentials: false
2222

@@ -51,7 +51,7 @@ jobs:
5151
# print largest size
5252
ls -l ./store | cut -d' ' -f5 | sort -u -n -r | head -n1
5353
54-
- uses: actions/upload-artifact@v4
54+
- uses: actions/upload-artifact@v7
5555
if: success()
5656
with:
5757
name: corpus

0 commit comments

Comments
 (0)