Skip to content

Commit

Permalink
build: re-enable ASAN Action using clang
Browse files Browse the repository at this point in the history
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 <mmarchini@netflix.com>

PR-URL: #32776
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
mmarchini committed Apr 13, 2020
1 parent 2c30276 commit 81c03bc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-asan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test-asan

on: [push, pull_request]

env:
PYTHON_VERSION: 3.8
FLAKY_TESTS: dontcare

jobs:
test-asan:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
LINK: clang++
CONFIG_FLAGS: --enable-asan
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build
run: make build-ci -j2 V=1
- name: Test cctest
run: make cctest -j2 V=1

0 comments on commit 81c03bc

Please sign in to comment.