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 1b6d3e1
Showing
13 changed files
with
50 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,50 @@ | ||
name: Build and Test k-NN | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
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 | ||
options: --user root | ||
|
||
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: Setup Java 21 | ||
run: | | ||
export JAVA_HOME=/opt/java/openjdk-21 | ||
export PATH=$PATH:$JAVA_HOME/bin | ||
java -version | ||
- name: Run build | ||
run: | | ||
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 | ||
- 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.