Skip to content

Commit

Permalink
Add Clang for workflow, currently only supports Ubuntu. (vesoft-inc#1484
Browse files Browse the repository at this point in the history
)
  • Loading branch information
monadbobo authored and dutor committed Dec 23, 2019
1 parent f9bf443 commit b92e757
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
- 'docs/**'

jobs:
build:
name: build
build-gcc:
name: build-gcc
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -57,3 +57,51 @@ jobs:
cd _build
${NEBULA_DEP_BIN}/ctest --output-on-failure
shell: bash
build-clang:
name: build-clang
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- 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_CXX_COMPILER=clang++-8 -DCMAKE_C_COMPILER=clang-8 -DENABLE_ASAN=on -DENABLE_UBSAN=on ..
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
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

0 comments on commit b92e757

Please sign in to comment.