feat: integrate to cgo (#153) #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go CI | |
on: | |
push: | |
paths: | |
- '!cpp/**' | |
- 'go/**' | |
pull_request: | |
paths: | |
- '!cpp/**' | |
- 'go/**' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Install dependencies | |
run: cd go && go mod download | |
- name: Setup minio | |
run: | | |
docker run -d -p 9000:9000 --name minio \ | |
-e "MINIO_ACCESS_KEY=minioadmin" \ | |
-e "MINIO_SECRET_KEY=minioadmin" \ | |
-v /tmp/data:/data \ | |
-v /tmp/config:/root/.minio \ | |
minio/minio server /data | |
- name: Install dependencies | |
uses: aminya/setup-cpp@v1 | |
with: | |
conan: 1.61.0 | |
cmake: true | |
- name: setup conan | |
run: | |
conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local --insert | |
&& conan remote list | |
- name: conan package cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.conan | |
key: conan-${{ hashFiles('./cpp/conanfile.py') }} | |
restore-keys: conan- | |
- name: Build c++ | |
run: cd cpp && make | |
- name: Run tests | |
run: cd go && make && make test |