Skip to content

Workflow file for this run

name: Build & Test Learning to Rank Plugin
on:
schedule:
- cron: '0 0 * * *' # every night
push:
branches:
- "*"
- "feature/**"
pull_request:
branches:
- "*"
- "feature/**"
workflow_dispatch:
jobs:
Build-ltr-plugin:
strategy:
matrix:
java: [11, 17]
os: [ubuntu-latest, macos-latest]
name: Build and Test Learning to Rank Plugin
runs-on: ${{ matrix.os }}
steps:
- name: Checkout LTR Plugin
uses: actions/checkout@v1
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Run non-Windows
if: ${{ matrix.os != 'windows-latest' }}
run: |
./gradlew build -Dopensearch.version=2.8.0 -Djava.security.manager=allow -Dbuild.snapshot=false
# - name: Upload Coverage Report
# if: ${{matrix.os}} == 'ubuntu'
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
- name: Create Artifact Path
run: |
mkdir -p opensearch-ltr-builds
cp -r ./build/distributions/*.zip opensearch-ltr-builds
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: opensearch-ltr-${{ matrix.os }}
path: opensearch-ltr-builds