Skip to content

Merge pull request #296 from maxmind/dependabot/github_actions/astral… #1144

Merge pull request #296 from maxmind/dependabot/github_actions/astral…

Merge pull request #296 from maxmind/dependabot/github_actions/astral… #1144

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@ed21f2f24f8dd64503750218de024bcf64c7250a # 7.1.5
- 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