Skip to content

Clang Static Analysis #770

Clang Static Analysis

Clang Static Analysis #770

name: Clang Static Analysis
on:
push:
pull_request:
schedule:
- cron: '3 15 * * SUN'
permissions: {}
jobs:
clang-analyzer:
name: Clang Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- name: Install clang-tools
run: sudo apt install clang-tools
- name: Install the latest version of uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # 6.0.1
- name: Build and run analyzer
# We exclude extension/libmaxminddb/ as libmaxminddb has its own workflow
# for this and we are not able to correct any issues with that code here.
run: scan-build --exclude extension/libmaxminddb/ --status-bugs uv build
env:
CFLAGS: "-Werror -Wall -Wextra"
MAXMINDDB_REQUIRE_EXTENSION: 1