Skip to content

Commit e054dac

Browse files
authored
Adds Continuous Integration (#84)
* CI * CI 2 * CI 3 * CI 3 * CI 3 * CI 3 * CI 3 * CI 4 * CI 5 * CI 5.2 * CI 5.3 * CI 5.4 * CI 6 * CI 6.2 * CI 7 * CI 8 * CI 8.2 * CI 8.3 * CI 8.4 * CI 8.5 * CI 8.6 * CI 9 * CI 9 * CI 10 * CI 10 * CI 10 1 * CI 10 2 * CI 10 3 * CI 10 3 * CI 10 3 * CI 10 4 * CI 10 4 * CI 11 * CI 11 1 * Continuous Integration
1 parent b5004cb commit e054dac

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

.github/workflows/linux-build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

0 commit comments

Comments
 (0)