Skip to content

Commit 9d85d47

Browse files
committed
Add github CI integration.
CI will be responsible for compiling source code and code formatting.
1 parent c5acf62 commit 9d85d47

File tree

4 files changed

+427
-0
lines changed

4 files changed

+427
-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 -DCMAKE_BUILD_TYPE=Debug
16+
- name: compile
17+
run: cmake --build build/Debug

.github/workflows/build_mac.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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
16+
-DClang_DIR=/usr/local/opt/llvm/lib/cmake/clang
17+
-DLLVM_DIR=/usr/local/opt/llvm/lib/cmake
18+
-DCMAKE_BUILD_TYPE=Debug
19+
- name: compile
20+
run: cmake --build ./build/Debug

0 commit comments

Comments
 (0)