Skip to content

Commit 5c4d8cd

Browse files
mmarchiniBridgeAR
authored andcommitted
build: re-enable ASAN Action using clang
clang's linker seems to use considerably less memory than gcc, allowing us to run on Actions without running out of memory. Signed-off-by: Matheus Marchini <[email protected]> PR-URL: #32776 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent c8d4360 commit 5c4d8cd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test-asan.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test-asan
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
PYTHON_VERSION: 3.8
7+
FLAKY_TESTS: dontcare
8+
9+
jobs:
10+
test-asan:
11+
runs-on: ubuntu-latest
12+
env:
13+
CC: clang
14+
CXX: clang++
15+
LINK: clang++
16+
CONFIG_FLAGS: --enable-asan
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ env.PYTHON_VERSION }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ env.PYTHON_VERSION }}
23+
- name: Environment Information
24+
run: npx envinfo
25+
- name: Build
26+
run: make build-ci -j2 V=1
27+
- name: Test cctest
28+
run: make cctest -j2 V=1

0 commit comments

Comments
 (0)