Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test GitHub actions #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/cpp-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: cpp

on:
push:
paths:
- 'cpp/**'
- '!go/**'
pull_request:
paths:
- 'cpp/**'
- '!go/**'
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install dependencies
uses: aminya/setup-cpp@v1
with:
conan: 1.58.0
cmake: true

- name: setup conan
run:
conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local

- name: conan package cache
uses: actions/cache@v3
with:
path: ~/.conan
key: conan-${{ hashFiles('./cpp/conanfile.py') }}
restore-keys: conan-

- name: Build
working-directory: ./cpp
run: |
mkdir build && cd build
conan install .. --build missing
conan build ..
# - uses: actions/cache/save@v3
# if: always()
# with:
# path: ~/.conan
# key: conan-${{ hashFiles('./cpp/conanfile.py') }}

- name : Test
working-directory: ./cpp/build
run:
ctest .
33 changes: 0 additions & 33 deletions .github/workflows/cppci.yml

This file was deleted.

2 changes: 2 additions & 0 deletions cpp/src/storage/space.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace milvus_storage {
class FilterQueryRecordReader;
class RecordReader;

// some comment
// comment
class Space {
public:
Status Init();
Expand Down