forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ASAN Tests
on:
pull_request:
push:
branches:
- 'main'
- 'devel/**'
workflow_dispatch:
jobs:
build:
name: ASAN Build
runs-on: ubuntu-latest
container: ghcr.io/neomutt/docker-build
env:
ASAN_OPTIONS: detect_leaks=1:color=never:log_path=asan:print_legend=false:print_summary=false
CONFIGURE_OPTIONS: --asan --autocrypt --bdb --disable-idn --full-doc --gdbm --gnutls --gpgme --gss --idn2 --kyotocabinet --lmdb --lua --lz4 --notmuch --qdbm --sasl --tdb --tokyocabinet --with-lock=fcntl --zlib --zstd
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Checkout Test Files
uses: actions/checkout@v3
with:
repository: neomutt/neomutt-test-files
path: test-files
- name: Set Up Test Files
run: |
cd test-files
./setup.sh
- name: Compilation Cache
uses: hendrikmuhs/[email protected]
- name: Configure Neomutt
run: ./configure $CONFIGURE_OPTIONS
- name: Build Tests
run: make -j 2 test/neomutt-test
- name: Run Tests
run: |
export ASAN_OPTIONS="$ASAN_OPTIONS"
export NEOMUTT_TEST_DIR="$GITHUB_WORKSPACE/test-files"
make test
- name: Upload ASAN Log
uses: actions/upload-artifact@v3
if: failure()
with:
name: asan-log
path: ${{ github.workspace }}/asan.*
retention-days: 10
if-no-files-found: ignore