mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
Enable ASAN for macOS CI builds in ci.py
This commit is contained in:
committed by
Kovid Goyal
parent
903d2a5335
commit
bf7689b211
7
.github/workflows/ci.py
vendored
7
.github/workflows/ci.py
vendored
@@ -20,6 +20,7 @@ NERD_URL = 'https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Ner
|
||||
is_bundle = os.environ.get('KITTY_BUNDLE') == '1'
|
||||
is_codeql = os.environ.get('KITTY_CODEQL') == '1'
|
||||
is_macos = 'darwin' in sys.platform.lower()
|
||||
running_under_sanitizer = os.environ.get('KITTY_SANITIZE') == '1'
|
||||
SW = ''
|
||||
|
||||
|
||||
@@ -134,10 +135,8 @@ def install_deps() -> None:
|
||||
def build_kitty() -> None:
|
||||
python = shutil.which('python3') if is_bundle else sys.executable
|
||||
cmd = f'{python} setup.py build --verbose'
|
||||
if os.environ.get('KITTY_SANITIZE') == '1':
|
||||
if running_under_sanitizer:
|
||||
cmd += ' --debug --sanitize'
|
||||
elif is_macos:
|
||||
cmd += ' --debug' # for better crash report to debug SIGILL issue
|
||||
run(cmd)
|
||||
|
||||
|
||||
@@ -145,6 +144,8 @@ def test_kitty() -> None:
|
||||
if is_macos:
|
||||
run('ulimit -c unlimited')
|
||||
run('sudo chmod -R 777 /cores')
|
||||
if running_under_sanitizer:
|
||||
os.environ['MallocNanoZone'] = '0'
|
||||
run('./test.py', print_crash_reports=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user