-
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (35 loc) · 918 Bytes
/
build.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: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: update build environment
run: sudo apt-get update --fix-missing -y
- name: install prerequisites
run: sudo apt-get install -y cppcheck
- name: make
run: make "OPTIM=-g -fsanitize=address"
- name: test
env:
ASAN_OPTIONS: leak_check_at_exit=false
run: make test
- name: clang static analyzer
run: make "GHA_ERROR=::error::" clang
- name: cppcheck
run: make "GHA_ERROR=::error::" cppcheck
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: make
run: make "OPTIM=-g -fsanitize=address"
- name: test
run: make test
- name: clang static analyzer
run: make "GHA_ERROR=::error::" clang