-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (33 loc) · 1.07 KB
/
ci.yaml
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
name: "Run tests"
on:
push:
branches:
- main
pull_request:
jobs:
Normal:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install meson and ninja
run: pip3 install --user meson ninja
- 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 -Dbuild_shared_libs=false build
ninja -C build test
Asan:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install meson and ninja
run: pip3 install --user meson ninja
- 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 -Dbuild_shared_libs=false -Db_sanitize=address,undefined build
ninja -C build test