forked from opensearch-project/k-NN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Junqiu Lei <[email protected]>
- Loading branch information
1 parent
6e30a3b
commit 95523e1
Showing
13 changed files
with
43 additions
and
609 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and Test k-NN | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
|
||
jobs: | ||
Build-k-NN-Linux: | ||
name: Build and Test k-NN Plugin on Linux | ||
runs-on: ubuntu-latest | ||
container: | ||
image: junqiuamz/ci-runner:knn-al2-1 | ||
|
||
steps: | ||
- name: Checkout k-NN | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup git user | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
- name: Run build | ||
run: | | ||
export JAVA_HOME=/opt/java/openjdk-21 | ||
export PATH=$PATH:$JAVA_HOME/bin | ||
java -version | ||
if lscpu | grep -i avx2; then | ||
echo "avx2 available on system" | ||
./gradlew build | ||
else | ||
echo "avx2 not available on system" | ||
./gradlew build -Dsimd.enabled=false | ||
fi | ||
shell: bash | ||
|
||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.