Skip to content

Commit

Permalink
Merge branch 'milvus-io:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
loloxwg authored Jun 22, 2023
2 parents e72b3c0 + 0d9cc53 commit 106a968
Showing 1 changed file with 50 additions and 0 deletions.
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 .

0 comments on commit 106a968

Please sign in to comment.