Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: usage of deprecated Node.js 16 action #87

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,25 +19,25 @@ jobs:
- stable
- beta
steps:
- uses: actions/checkout@v3
- name: Cache Faiss shared objects
uses: actions/cache@v3
with:
path: ~/.faiss_c
key: ${{ runner.os }}-build-${{ env.cache-name }}-libfaiss
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Download and build Faiss
run: ./faiss-sys/ci/install_faiss_c.sh
- name: Install Faiss
run: sudo cp $HOME/.faiss_c/lib*.so /usr/lib/
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
cache: true
# Build and run tests
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- name: Cache Faiss shared objects
uses: actions/cache@v3
with:
path: ~/.faiss_c
key: ${{ runner.os }}-build-${{ env.cache-name }}-libfaiss
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Download and build Faiss
run: ./faiss-sys/ci/install_faiss_c.sh
- name: Install Faiss
run: sudo cp $HOME/.faiss_c/lib*.so /usr/lib/
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
cache: true
# Build and run tests
- name: Run tests
run: cargo test --verbose

# test `faiss` crates with static linking
build-static:
Expand All @@ -47,26 +47,26 @@ jobs:
rust:
- stable
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
cache: true
- name: Install CMake
uses: lukka/get-cmake@latest
- run: gcc -v
- run: cmake --version
# Build everything and run tests
- name: Run tests
run: cargo test --verbose --features static
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
cache: true
- name: Install CMake
uses: lukka/get-cmake@latest
- run: gcc -v
- run: cmake --version
# Build everything and run tests
- name: Run tests
run: cargo test --verbose --features static

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
Expand Down
Loading