-
Notifications
You must be signed in to change notification settings - Fork 83
38 lines (33 loc) · 1.01 KB
/
clang-analyzer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Clang Static Analysis
on:
push:
pull_request:
schedule:
- cron: '45 3 * * SUN'
jobs:
run:
name: "Clang Static Analysis"
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer, phpize
- name: Checkout
# We use v1 due to https://github.com/actions/checkout/issues/334
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- name: Install clang-tools and libmaxminddb
run: sudo apt update && sudo apt-get install clang-tools libmaxminddb-dev
- name: Build extension
run: |
export CFLAGS="-L$HOME/libmaxminddb/lib"
export CPPFLAGS="-I$HOME/libmaxminddb/include"
cd ext
phpize
scan-build --status-bugs ./configure --with-maxminddb --enable-maxminddb-debug
make clean
scan-build --status-bugs make