Skip to content

Commit

Permalink
Test AL2 env for knn build
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Jun 14, 2024
1 parent 6e30a3b commit f81adb4
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 609 deletions.
168 changes: 0 additions & 168 deletions .github/workflows/CI.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/add-untriaged.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/al2-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and Test k-NN
on:
push:
branches:
- "*"
- "feature/**"
pull_request:
branches:
- "*"
- "feature/**"

jobs:
Build-k-NN-Linux:
strategy:
matrix:
java: [21]

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 ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}

- 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 }}
28 changes: 0 additions & 28 deletions .github/workflows/auto-release.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/backport.yml

This file was deleted.

Loading

0 comments on commit f81adb4

Please sign in to comment.