mirror of https://github.com/milvus-io/milvus.git
add codecov github actions
parent
a2c857ccd8
commit
186cab364f
|
@ -31,7 +31,7 @@ jobs:
|
|||
- name: Docker Build
|
||||
run: |
|
||||
docker-compose run --use-aliases -d db
|
||||
docker-compose run -e MILVUS_CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} ubuntu-core
|
||||
docker-compose run ubuntu-core
|
||||
- name: Docker Push
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
|
@ -40,6 +40,14 @@ jobs:
|
|||
docker login -u ${{ secrets.DOCKERHUB_USER }} \
|
||||
-p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
docker-compose push ubuntu-core
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
file: ./ci/scripts/output_new.info
|
||||
flags: unittests
|
||||
yml: ./codecov.yaml
|
||||
fail_ci_if_error: true
|
||||
|
||||
centos:
|
||||
name: AMD64 CentOS ${{ matrix.centos }}
|
||||
|
@ -61,7 +69,7 @@ jobs:
|
|||
- name: Docker Build
|
||||
run: |
|
||||
docker-compose run --use-aliases -d db
|
||||
docker-compose run -e MILVUS_CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} centos-core
|
||||
docker-compose run centos-core
|
||||
- name: Docker Push
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
|
@ -70,3 +78,11 @@ jobs:
|
|||
docker login -u ${{ secrets.DOCKERHUB_USER }} \
|
||||
-p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
docker-compose push centos-core
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
file: ./ci/scripts/output_new.info
|
||||
flags: unittests
|
||||
yml: ./codecov.yaml
|
||||
fail_ci_if_error: true
|
||||
|
|
|
@ -98,9 +98,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
|||
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -O3")
|
||||
endif ()
|
||||
else ()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -g -fPIC -DELPP_THREAD_SAFE -fopenmp -mavx -mf16c -msse4 -mpopcnt")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fPIC -DELPP_THREAD_SAFE -fopenmp -mavx -mf16c -msse4 -mpopcnt")
|
||||
if (KNOWHERE_GPU_VERSION)
|
||||
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -O3 -g")
|
||||
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -O0 -g")
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ services:
|
|||
- milvus
|
||||
command: &ubuntu-command >
|
||||
/bin/bash -c "
|
||||
echo 'MILVUS_CODECOV_TOKEN: ${MILVUS_CODECOV_TOKEN}'
|
||||
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
|
||||
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
|
||||
|
||||
|
@ -61,7 +60,6 @@ services:
|
|||
- milvus
|
||||
command: ¢os-command >
|
||||
/bin/bash --login -c "
|
||||
echo 'MILVUS_CODECOV_TOKEN: ${MILVUS_CODECOV_TOKEN}'
|
||||
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
|
||||
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
|
||||
|
||||
|
|
Loading…
Reference in New Issue