forked from vesoft-inc/nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.md | ||
|
||
docs/ | ||
_build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Nebula Build and Test Workflow | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-18.04 | ||
container: | ||
image: vesoft/nebula-dev:centos | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: cmake | ||
run: | | ||
. /etc/profile.d/devtoolset-8-enable.sh | ||
mkdir _build | ||
cd _build && cmake .. | ||
shell: bash | ||
- name: make | ||
run: | | ||
. /etc/profile.d/devtoolset-8-enable.sh | ||
cd _build && make -j2 | ||
shell: bash | ||
- name: test | ||
run: | | ||
. /etc/profile.d/devtoolset-8-enable.sh | ||
cd _build && ctest --output-on-failure | ||
shell: bash |