Skip to content

Commit

Permalink
Merge pull request #87 from hamirmahal/fix/usage-of-deprecated-nodejs…
Browse files Browse the repository at this point in the history
…-16-action

fix: usage of deprecated `Node.js 16` action
  • Loading branch information
Enet4 authored Sep 18, 2024
2 parents 97cdff8 + 2487440 commit e9724a5
Showing 1 changed file with 36 additions and 36 deletions.
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

0 comments on commit e9724a5

Please sign in to comment.