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 <[email protected]>

PR-URL: #32776
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
mmarchini authored and BridgeAR committed Apr 28, 2020
1 parent c8d4360 commit 5c4d8cd
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 5c4d8cd

Please sign in to comment.