Skip to content

Commit 94bb5d5

Browse files
committed
feat(ci): add pull request ci
1 parent 200e3ec commit 94bb5d5

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: pull request ci
2+
on: [pull_request]
3+
jobs:
4+
linux:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
compiler: [g++, clang]
10+
steps:
11+
- name: Checkout last commit
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
submodules: "recursive"
16+
17+
- name: Install dependency
18+
run: ./action-install-linux.sh
19+
20+
- name: Unit test
21+
run: make test
22+
macos:
23+
runs-on: macos-latest
24+
steps:
25+
- name: Checkout last commit
26+
uses: actions/checkout@v2
27+
with:
28+
fetch-depth: 0
29+
submodules: "recursive"
30+
31+
- name: Install dependency
32+
run: ./action-install-macos.sh
33+
34+
- name: Unit test
35+
run: make xcode/test
36+
windows:
37+
runs-on: windows-latest
38+
steps:
39+
- name: Checkout last commit
40+
uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 0
43+
submodules: "recursive"
44+
45+
- name: Install dependency
46+
run: .\action-install-windows.bat
47+
48+
- name: Unit test
49+
run: .\build.bat test

0 commit comments

Comments
 (0)