Skip to content

Commit 25308bd

Browse files
committed
Run AddressSanitizer
I wanted to use Clang for this but I've been having issues getting the final step of the compilation to use Clang. It uses Clang for building and GCC for linking. That might be fine and the correct thing to do in fact, but I'm not sure. Either way, using ASAN with GCC seems sufficient.
1 parent b619010 commit 25308bd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Address Sanitizer
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '13 15 * * SUN'
7+
jobs:
8+
build:
9+
name: Address Sanitizer
10+
runs-on: ubuntu-latest
11+
env:
12+
CFLAGS: -fsanitize=address
13+
LDFLAGS: -fsanitize=address
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: true
19+
20+
- name: Install libmaxminddb
21+
run: sudo apt install libmaxminddb-dev
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.x
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install tox tox-gh-actions
32+
33+
- name: Build
34+
run: python setup.py build
35+
36+
- name: Test with tox
37+
run: MM_FORCE_EXT_TESTS=1 tox

0 commit comments

Comments
 (0)