-
Notifications
You must be signed in to change notification settings - Fork 237
55 lines (49 loc) · 1.59 KB
/
push-test.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
name: DiskANN Push Build
on: [push]
jobs:
ubuntu-latest-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt install cmake g++ libaio-dev libgoogle-perftools-dev libunwind-dev clang-format libboost-dev libboost-program-options-dev libmkl-full-dev libcpprest-dev
- name: Clang Format Check
run: |
mkdir build && cd build && cmake -DRESTAPI=True -DCMAKE_BUILD_TYPE=Release ..
make checkformat
- name: build
run: |
cd build && make -j
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Python Build Module
run: python -m pip install build
- name: Python Build
run: python -m build
windows-build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Add VisualStudio command line tools into path
uses: ilammy/msvc-dev-cmd@v1
- name: Run configure and build
run: |
mkdir build && cd build && cmake .. && msbuild diskann.sln /m /nologo /t:Build /p:Configuration="Release" /property:Platform="x64" -consoleloggerparameters:"ErrorsOnly;Summary"
shell: cmd
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Python Build Module
run: python -m pip install build
- name: Python Build
run: python -m build