Skip to content

Commit ce7c8b5

Browse files
committed
Add initial GitHub CI
1 parent 221679b commit ce7c8b5

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

.github/workflows/main.yml

+29-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,37 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
6+
Linux:
87
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: cmake
11+
run: cmake .
12+
- name: make
13+
run: make
14+
- name: test
15+
run: ctest --output-on-failure
16+
17+
macOS:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: cmake
22+
run: cmake .
23+
- name: make
24+
run: make
25+
- name: test
26+
run: ctest --output-on-failure
927

28+
Windows:
29+
runs-on: windows-latest
1030
steps:
1131
- uses: actions/checkout@v1
12-
- name: Run a one-line script
13-
run: echo Hello, world!
14-
- name: Run a multi-line script
15-
run: |
16-
echo Add other actions to build,
17-
echo test, and deploy your project.
32+
- name: cmake
33+
run: cmake -G "Visual Studio 16 2019" .
34+
- name: make
35+
run: cmake --build .
36+
- name: test
37+
run: ctest --output-on-failure

0 commit comments

Comments
 (0)