Skip to content

Commit c37eed5

Browse files
authored
Merge pull request #84 from maxmind/greg/clang-static-analysis
Run Clang static analysis on extension build
2 parents b00eac5 + f88607a commit c37eed5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/clang-analyzer.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Clang Static Analysis
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '3 15 * * SUN'
8+
9+
jobs:
10+
clang-analyzer:
11+
name: Clang Static Analysis
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install libmaxminddb
18+
run: sudo apt install clang-tools libmaxminddb-dev
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.x
24+
25+
- name: Build and run analyzer
26+
run: CFLAGS="-Werror -Wall -Wextra" scan-build --status-bugs python setup.py build

0 commit comments

Comments
 (0)