milvus/.github/workflows/cpplint.yml
quicksilver ff9fe6fa4a
Milvus build stage parallel processing (#3423)
* Milvus build stage parallel processing

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Milvus build stage parallel processing

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Milvus build stage parallel processing

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Milvus build stage parallel processing

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Milvus build stage parallel processing

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>

* Milvus build stage parallel processing

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
2020-08-24 15:30:52 +08:00

65 lines
1.8 KiB
YAML

name: Cpplint
# This workflow is triggered on pushes or pull request to the repository.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'ci/**'
- 'core/**'
- 'docker/build_env/cpu/**'
- '.github/workflows/cpplint.yml'
- docker-compose.yml
- '!**.md'
- '!ci/jenkins/**'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'ci/**'
- 'core/**'
- '.github/workflows/cpplint.yml'
- docker-compose.yml
- '!**.md'
- '!ci/jenkins/**'
jobs:
centos:
name: ${{ matrix.title }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name:
- cpplint
- cpplint-gpu
include:
- name: cpplint
service: cpplint
title: Milvus CppLint
- name: cpplint-gpu
service: cpplint-gpu
title: Milvus GPU Version CppLint
steps:
# This step checks out a copy of your repository.
- name: Checkout Milvus
uses: actions/checkout@v2
- name: Docker Pull
shell: bash
run: |
docker-compose pull --ignore-pull-failures ${{ matrix.service }}
- name: Docker Build
shell: bash
run: |
docker-compose build ${{ matrix.service }}
- name: Docker Run
run: |
docker-compose run ${{ matrix.service }}
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
continue-on-error: true
shell: bash
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push ${{ matrix.service }}