Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ jobs:
os: ubuntu-24.04
CC: gcc-14
CXX: g++-14
- name: Linux (GCC 14 + analyzer)
os: ubuntu-24.04
CC: gcc-14
CXX: g++-14
RUN_ANALYZER: gcc
- name: Linux (GCC 15 + runtime curl)
os: ubuntu-26.04
CC: gcc-15
Expand Down Expand Up @@ -189,6 +194,9 @@ jobs:
TEST_X86: 1
- name: Windows (latest)
os: windows-latest
- name: Windows (MSVC analyzer)
os: windows-2022
RUN_ANALYZER: msvc
- name: Windows arm64
os: windows-11-arm
- name: Windows (latest, UTF-8 paths)
Expand Down Expand Up @@ -537,7 +545,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install cmake clang clang-tidy gcc-13 g++-13 zlib1g-dev libcurl4-openssl-dev
sudo apt install cmake clang clang-tidy cppcheck gcc-13 g++-13 zlib1g-dev libcurl4-openssl-dev
python -m pip install codechecker==6.28.2

- name: Analyze
Expand Down
1 change: 1 addition & 0 deletions scripts/run-codechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def main():
"--analyzers",
"clangsa",
"clang-tidy",
"cppcheck",
*("--disable={}".format(checker) for checker in disabled_checkers),
"--print-steps",
"--ignore",
Expand Down
4 changes: 3 additions & 1 deletion tests/build_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_cflags(extra_cflags=None):

This handles:
- ERROR_ON_WARNINGS -> -Werror
- MSVC parallel builds and warnings as errors
- MSVC parallel builds, warnings as errors, and code analysis
- GCC analyzer

Args:
Expand All @@ -113,6 +113,8 @@ def get_cflags(extra_cflags=None):
if sys.platform == "win32" and not os.environ.get("TEST_MINGW"):
cpus = os.cpu_count()
cflags.append("/WX /MP{}".format(cpus))
if "msvc" in os.environ.get("RUN_ANALYZER", ""):
cflags.append("/analyze /analyze:WX-")

if "gcc" in os.environ.get("RUN_ANALYZER", ""):
cflags.append("-fanalyzer")
Expand Down
Loading