2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
env :
10
10
CARGO_TERM_COLOR : always
@@ -19,25 +19,25 @@ jobs:
19
19
- stable
20
20
- beta
21
21
steps :
22
- - uses : actions/checkout@v3
23
- - name : Cache Faiss shared objects
24
- uses : actions/cache@v3
25
- with :
26
- path : ~/.faiss_c
27
- key : ${{ runner.os }}-build-${{ env.cache-name }}-libfaiss
28
- - name : Install CMake
29
- uses : lukka/get-cmake@latest
30
- - name : Download and build Faiss
31
- run : ./faiss-sys/ci/install_faiss_c.sh
32
- - name : Install Faiss
33
- run : sudo cp $HOME/.faiss_c/lib*.so /usr/lib/
34
- - uses : actions-rust-lang/setup-rust-toolchain@v1
35
- with :
36
- toolchain : ${{ matrix.rust }}
37
- cache : true
38
- # Build and run tests
39
- - name : Run tests
40
- run : cargo test --verbose
22
+ - uses : actions/checkout@v4
23
+ - name : Cache Faiss shared objects
24
+ uses : actions/cache@v3
25
+ with :
26
+ path : ~/.faiss_c
27
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-libfaiss
28
+ - name : Install CMake
29
+ uses : lukka/get-cmake@latest
30
+ - name : Download and build Faiss
31
+ run : ./faiss-sys/ci/install_faiss_c.sh
32
+ - name : Install Faiss
33
+ run : sudo cp $HOME/.faiss_c/lib*.so /usr/lib/
34
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
35
+ with :
36
+ toolchain : ${{ matrix.rust }}
37
+ cache : true
38
+ # Build and run tests
39
+ - name : Run tests
40
+ run : cargo test --verbose
41
41
42
42
# test `faiss` crates with static linking
43
43
build-static :
@@ -47,26 +47,26 @@ jobs:
47
47
rust :
48
48
- stable
49
49
steps :
50
- - uses : actions/checkout@v3
51
- with :
52
- submodules : recursive
53
- - uses : actions-rust-lang/setup-rust-toolchain@v1
54
- with :
55
- toolchain : ${{ matrix.rust }}
56
- cache : true
57
- - name : Install CMake
58
- uses : lukka/get-cmake@latest
59
- - run : gcc -v
60
- - run : cmake --version
61
- # Build everything and run tests
62
- - name : Run tests
63
- run : cargo test --verbose --features static
50
+ - uses : actions/checkout@v4
51
+ with :
52
+ submodules : recursive
53
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
54
+ with :
55
+ toolchain : ${{ matrix.rust }}
56
+ cache : true
57
+ - name : Install CMake
58
+ uses : lukka/get-cmake@latest
59
+ - run : gcc -v
60
+ - run : cmake --version
61
+ # Build everything and run tests
62
+ - name : Run tests
63
+ run : cargo test --verbose --features static
64
64
65
65
clippy :
66
66
name : Clippy
67
67
runs-on : ubuntu-latest
68
68
steps :
69
- - uses : actions/checkout@v3
69
+ - uses : actions/checkout@v4
70
70
- uses : actions-rust-lang/setup-rust-toolchain@v1
71
71
with :
72
72
toolchain : stable
0 commit comments