-
Notifications
You must be signed in to change notification settings - Fork 17
61 lines (52 loc) · 1.29 KB
/
cpp-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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/Release
run:
ctest .
- name: Format
working-directory: ./cpp
run:
make format
- name: Tidy
working-directory: ./cpp
run:
make tidy-check