Skip to content

Commit 55fb98e

Browse files
committed
(#4) Setup CI
1 parent a54a88a commit 55fb98e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build-linux-gcc:
6+
runs-on: ubuntu-18.04
7+
steps:
8+
- uses: actions/checkout@v1
9+
- name: build all and examples
10+
run: |
11+
make -k
12+
./test
13+
env:
14+
CC: gcc
15+
CXX: g++
16+
build-linux-clang:
17+
runs-on: ubuntu-18.04
18+
steps:
19+
- name: build all and examples
20+
run: |
21+
make -k
22+
./test
23+
env:
24+
CC: clang
25+
CXX: clang++
26+
build-macos:
27+
runs-on: macOS-latest
28+
steps:
29+
- uses: actions/checkout@v1
30+
- name: build all and examples
31+
run: |
32+
make -k
33+
./test
34+
env:
35+
CC: clang
36+
CXX: clang++
37+
# TODO: there is not build for Windows

0 commit comments

Comments
 (0)