Skip to content

Commit

Permalink
Add GitHub actions workflow configuration (vesoft-inc#945)
Browse files Browse the repository at this point in the history
* 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
yixinglu authored and dutor committed Sep 17, 2019
1 parent 5ba39da commit fcc85bd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.md

docs/
_build/
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
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

0 comments on commit fcc85bd

Please sign in to comment.