-
Notifications
You must be signed in to change notification settings - Fork 169
42 lines (33 loc) · 1 KB
/
asan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test with ASAN
on:
workflow_dispatch:
inputs:
reason:
description: 'Reason for running workflow'
required: true
jobs:
run_asan:
runs-on: ubuntu-latest
steps:
- name: Log reason
if: github.event_name == 'workflow_dispatch'
run: |
echo "Reason for triggering: ${{ github.event.inputs.reason }}"
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install multilib packages
run: sudo apt-get install gcc-multilib g++-multilib
- name: Set ASAN-related environment variables
run: echo "ADD_SANITIZER=address" >> $GITHUB_ENV
- name: Install AFDKO and dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt .
pip freeze --all
- name: Run tests
run: pytest tests