Skip to content

Commit 80496ab

Browse files
committed
add github ci ntegrated, check if code can build
1 parent 41e7d6a commit 80496ab

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/build_linux.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: try build in ubuntu
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: install depend
11+
run: sudo apt install clang libclang-9-dev
12+
- name: clone submodule
13+
run: git submodule update --init --recursive
14+
- name: cmake generate
15+
run: cmake -H. -Bbuild/Debug
16+
- name: make
17+
run: make -C build/Debug -j

.github/workflows/build_mac.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: try build in mac os
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: install depend
11+
run: brew install llvm
12+
- name: clone submodule
13+
run: git submodule update --init --recursive
14+
- name: cmake generate
15+
run: cmake -H. -Bbuild/Debug -DClang_DIR=/usr/local/opt/llvm/lib/cmake/clang -DLLVM_DIR=/usr/local/opt/llvm/lib/cmake
16+
- name: make
17+
run: make -C build/Debug -j

0 commit comments

Comments
 (0)