Skip to content

Commit e9724a5

Browse files
authored
Merge pull request #87 from hamirmahal/fix/usage-of-deprecated-nodejs-16-action
fix: usage of deprecated `Node.js 16` action
2 parents 97cdff8 + 2487440 commit e9724a5

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.github/workflows/ci.yml

+36-36
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -19,25 +19,25 @@ jobs:
1919
- stable
2020
- beta
2121
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
4141

4242
# test `faiss` crates with static linking
4343
build-static:
@@ -47,26 +47,26 @@ jobs:
4747
rust:
4848
- stable
4949
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
6464

6565
clippy:
6666
name: Clippy
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v4
7070
- uses: actions-rust-lang/setup-rust-toolchain@v1
7171
with:
7272
toolchain: stable

0 commit comments

Comments
 (0)