56 lines (54 loc) · 1.62 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: build
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
build:
name: build
runs-on: ubuntu-18.04
strategy:
matrix:
tag: [centos6, centos7, ubuntu1604, ubuntu1804]
container:
image: vesoft/nebula-dev:${{ matrix.tag }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: cmake
env:
NEBULA_DEP_BIN: /opt/nebula/third-party/bin
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:${LIBRARY_PATH}
run: |
mkdir _build && cd _build
${NEBULA_DEP_BIN}/cmake -DCMAKE_C_COMPILER=${NEBULA_DEP_BIN}/gcc -DCMAKE_CXX_COMPILER=${NEBULA_DEP_BIN}/g++ ..
shell: bash
- name: make
env:
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:${LIBRARY_PATH}
run: |
cd _build && make -j $(nproc)
shell: bash
- name: test in multithreads
continue-on-error: true
timeout-minutes: 20
env:
NEBULA_DEP_BIN: /opt/nebula/third-party/bin
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:${LIBRARY_PATH}
run: |
cd _build
${NEBULA_DEP_BIN}/ctest -j $(nproc) --output-on-failure
shell: bash
- name: test in singlethread
if: failure()
timeout-minutes: 40
env:
NEBULA_DEP_BIN: /opt/nebula/third-party/bin
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:${LIBRARY_PATH}
run: |
cd _build
${NEBULA_DEP_BIN}/ctest --output-on-failure
shell: bash