Skip to content

Merge pull request #303 from maxmind/dependabot/uv/ruff-0.14.10 #1165

Merge pull request #303 from maxmind/dependabot/uv/ruff-0.14.10

Merge pull request #303 from maxmind/dependabot/uv/ruff-0.14.10 #1165

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@v6
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@681c641aba71e4a1c380be3ab5e12ad51f415867 # 7.1.6
- 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