File tree Expand file tree Collapse file tree 2 files changed +103
-0
lines changed
Expand file tree Collapse file tree 2 files changed +103
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Linux (Ubuntu)
2+
3+ on :
4+ push :
5+ paths :
6+ - ' **.cpp'
7+ - ' **.hpp'
8+ - ' **.txt'
9+
10+ branches :
11+ - main
12+
13+ pull_request :
14+ paths :
15+ - ' **.cpp'
16+ - ' **.hpp'
17+
18+ branches :
19+ - main
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - uses : actions/checkout@v2
27+
28+ - name : Run clang-format
29+ 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
30+
31+ - name : Run CMake setup
32+ working-directory : ./
33+ run : mkdir build/ && cd build/ && cmake ../
34+
35+ - name : Build examples
36+ working-directory : ./build
37+ run : make examples
38+
39+ - name : Build tests
40+ working-directory : ./build
41+ run : make tests
42+
43+ - name : Build benchmarks
44+ working-directory : ./build
45+ run : make benchmarks
46+
47+ - name : Run tests
48+ working-directory : ./
49+ run : ./build/tests/test
Original file line number Diff line number Diff line change 1+ name : Windows
2+
3+ defaults :
4+ run :
5+ shell : bash
6+
7+ on :
8+ push :
9+ paths :
10+ - ' **.cpp'
11+ - ' **.hpp'
12+
13+ branches :
14+ - main
15+
16+ pull_request :
17+ paths :
18+ - ' **.cpp'
19+ - ' **.hpp'
20+ - ' **.txt'
21+
22+ branches :
23+ - main
24+
25+ jobs :
26+ build :
27+ runs-on : windows-latest
28+
29+ steps :
30+ - uses : actions/checkout@v2
31+
32+ - name : Run clang-format
33+ shell : bash
34+ run : C:/msys64/mingw64/bin/clang-format -i examples/*.cpp && C:/msys64/mingw64/bin/clang-format -i tests/*.cpp && C:/msys64/mingw64/bin/clang-format -i tests/*.hpp && C:/msys64/mingw64/bin/clang-format -i benchmarks/*.cpp && git diff-index --quiet HEAD
35+
36+ - name : Run CMake setup
37+ working-directory : ./
38+ run : mkdir build/ && cd build/ && cmake ../
39+
40+ - name : Build examples
41+ working-directory : ./build
42+ run : make examples
43+
44+ - name : Build tests
45+ working-directory : ./build
46+ run : make tests
47+
48+ - name : Build benchmarks
49+ working-directory : ./build
50+ run : make benchmarks
51+
52+ - name : Run tests
53+ working-directory : ./
54+ run : ./build/tests/test
You can’t perform that action at this time.
0 commit comments