-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1 KB
/
build.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
37
38
39
40
41
name: Tests
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
submodules: true
- name: Build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DTEST_THREADS=$(nproc)
make -j $(nproc)
- name: Run tests
run: |
cd build
make test -j $(nproc)
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
submodules: true
- name: Install clangd
run: |
sudo apt install -y clang-tidy
- name: Build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DTEST_THREADS=$(nproc) -DCMAKE_EXPORT_COMPILE_COMMANDS=1
make -j $(nproc)
- name: Lint
run: |
clang-tidy src/**/*.hpp src/**/*.cpp --warnings-as-errors=\*