Skip to content

Commit

Permalink
Build on JDK 8, 11, 14 and 17.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@dblock.org>
  • Loading branch information
dblock committed Mar 11, 2022
1 parent 229a84a commit 8171532
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,32 @@ on:

jobs:
linux-build:
strategy:
matrix:
java:
- 8
- 11
- 14
- 17
# Job name
name: Build Asynchronous Search
# This job runs on Linux.
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 14
java-version: ${{ matrix.java }}
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew build -Dopensearch.version=1.3.0-SNAPSHOT
- name: Pull and Run Docker for security tests
run: |
version=1.1.0-SNAPSHOT
plugin_version=1.1.0.0-SNAPSHOT
version=1.3.0-SNAPSHOT
plugin_version=1.3.0.0-SNAPSHOT
pwd=`pwd`
echo $pwd
cd ..
Expand Down Expand Up @@ -94,10 +101,10 @@ jobs:
runs-on: windows-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
- name: Set Up JDK 11
uses: actions/setup-java@v1
with:
java-version: 14
java-version: 11
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
Expand All @@ -122,10 +129,10 @@ jobs:
runs-on: macos-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
- name: Set Up JDK 11
uses: actions/setup-java@v1
with:
java-version: 14
java-version: 11
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
Expand Down

0 comments on commit 8171532

Please sign in to comment.