From fcc85bdc9a0bc4dfa47a7ffbc02e08a23dc0b98d Mon Sep 17 00:00:00 2001 From: Xinglu Yee <2520865+yixinglu@users.noreply.github.com> Date: Tue, 17 Sep 2019 17:25:11 +0800 Subject: [PATCH] Add GitHub actions workflow configuration (#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 --- .dockerignore | 1 + .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.dockerignore b/.dockerignore index 2f0ff1b54c7..033920f2dc7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ *.md +docs/ _build/ diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000000..8a252bdae0c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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