Skip to content

Commit fcc85bd

Browse files
yixingludutor
authored andcommitted
Add GitHub actions workflow configuration (vesoft-inc#945)
* Add action workflow file * Fix syntax error * Fix syntax error * Fix github actions workflow ci syntax error * Fix tty error * Add pull request event trigger * Use container to simplify build job * Need not the environment bash * Number of threads limit * Fix on events of actions * Switch shell to bash * Enable devtoolset environment variables * Add cmake task * Make ctest output on failure
1 parent 5ba39da commit fcc85bd

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.md
22

3+
docs/
34
_build/

.github/workflows/ci.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Nebula Build and Test Workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: build
8+
runs-on: ubuntu-18.04
9+
container:
10+
image: vesoft/nebula-dev:centos
11+
steps:
12+
- uses: actions/checkout@v1
13+
with:
14+
fetch-depth: 1
15+
- name: cmake
16+
run: |
17+
. /etc/profile.d/devtoolset-8-enable.sh
18+
mkdir _build
19+
cd _build && cmake ..
20+
shell: bash
21+
- name: make
22+
run: |
23+
. /etc/profile.d/devtoolset-8-enable.sh
24+
cd _build && make -j2
25+
shell: bash
26+
- name: test
27+
run: |
28+
. /etc/profile.d/devtoolset-8-enable.sh
29+
cd _build && ctest --output-on-failure
30+
shell: bash

0 commit comments

Comments
 (0)