-
-
Notifications
You must be signed in to change notification settings - Fork 10
82 lines (77 loc) · 2.77 KB
/
ci.yaml
File metadata and controls
82 lines (77 loc) · 2.77 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: "CI Unit Tests"
on:
push:
branches:
- main
pull_request:
jobs:
Normal:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install meson and ninja
run: pip3 install --user meson ninja
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: Run Unit Tests
run: |
export PATH=${HOME}/Library/Python/3.8/bin:${HOME}/Library/Python/3.9/bin:${HOME}/.local/bin:${PATH}
meson -Dbuildtype=release -Denable_cli=true --werror build
ninja -C build test
./test/test-cli.sh ./build/rz-demangle
Normal-Minimal:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install meson and ninja
run: pip3 install --user meson ninja
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: Run Unit Tests
run: |
export PATH=${HOME}/Library/Python/3.8/bin:${HOME}/Library/Python/3.9/bin:${HOME}/.local/bin:${PATH}
meson -Dbuildtype=release -Denable_cli=true -Duse_swift_demangler=false --werror build-no-min
ninja -C build-no-min test
./test/test-cli.sh ./build-no-min/rz-demangle
Asan:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install meson and ninja
run: pip3 install --user meson ninja
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: Run Unit Tests with ASAN
env:
ASAN_OPTIONS: detect_leaks=0,detect_odr_violation=0,allocator_may_return_null=1
run: |
export PATH=${HOME}/Library/Python/3.8/bin:${HOME}/Library/Python/3.9/bin:${HOME}/.local/bin:${PATH}
meson -Dbuildtype=debugoptimized -Denable_cli=true -Db_sanitize=address,undefined --werror build-asan
ninja -C build-asan test
./test/test-cli.sh ./build-asan/rz-demangle
Asan-Trace:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip3 install --user meson ninja
sudo apt-get update
sudo apt-get install -y graphviz
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: Run Unit Tests with ASAN and DEMANGLE_TRACE
env:
ASAN_OPTIONS: detect_leaks=1,detect_odr_violation=0,allocator_may_return_null=1
DEMANGLE_TRACE: 1
run: |
export PATH=${HOME}/Library/Python/3.8/bin:${HOME}/Library/Python/3.9/bin:${HOME}/.local/bin:${PATH}
meson -Dbuildtype=debugoptimized -Denable_cli=true -Db_sanitize=address,undefined --werror build-asan-trace
ninja -C build-asan-trace test
# Clean up generated DOT and SVG files to save space
find build-asan-trace -name "*.dot" -delete
find build-asan-trace -name "*.svg" -delete