-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (39 loc) · 1.2 KB
/
clang.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
name: Clang (Linux)
on:
push:
branches: [ master, ammarfaizi2-dev ]
pull_request:
branches: [ master, ammarfaizi2-dev ]
jobs:
main:
name: Clang Build and Test
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt update -y --fix-missing; sudo apt install -y git clang make cmake libcurl4-openssl-dev valgrind doxygen;
- name: Clang version
run: clang --version && clang++ --version;
#
# Debug mode
#
- name: (Clang Debug Mode) Build
run: make BAN_WARN=1 CC=clang CXX=clang++ -j$(nproc);
- name: (Clang Debug Mode) Run Test
run: make BAN_WARN=1 CC=clang CXX=clang++ test_all -j$(nproc);
- name: Clean Build
run: make clean_all;
#
# Release mode
#
- name: (Clang Release Mode) Build
run: make RELEASE_MODE=1 BAN_WARN=1 CC=clang CXX=clang++ -j$(nproc);
- name: (Clang Release Mode) Run Test
run: make RELEASE_MODE=1 BAN_WARN=1 CC=clang CXX=clang++ SANITIZE=1 test_all -j$(nproc);
- name: Store artifact
uses: actions/upload-artifact@v2
with:
name: gwbot_clang
path: gwbot