-
-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (37 loc) · 967 Bytes
/
linux-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
43
44
45
46
47
48
49
name: Linux (Ubuntu)
on:
push:
paths:
- '**.cpp'
- '**.hpp'
- '**.txt'
branches:
- main
pull_request:
paths:
- '**.cpp'
- '**.hpp'
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run clang-format
run: clang-format -i examples/*.cpp && clang-format -i tests/*.cpp && clang-format -i tests/*.hpp && clang-format -i benchmarks/*.cpp && git diff-index --quiet HEAD
- name: Run CMake setup
working-directory: ./
run: mkdir build/ && cd build/ && cmake ../
- name: Build examples
working-directory: ./build
run: make examples
- name: Build tests
working-directory: ./build
run: make tests
- name: Build benchmarks
working-directory: ./build
run: make benchmarks
- name: Run tests
working-directory: ./
run: ./build/tests/test