Skip to content

Commit

Permalink
Adds test and build workflow for windows (#74)
Browse files Browse the repository at this point in the history
* Adds test and build workflow for windows

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
  • Loading branch information
eirsep authored Dec 8, 2021
1 parent a6a40c2 commit 9aeca94
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ on:
- plugin-dev

jobs:
build:
linux-build:
# Job name
name: Build Asynchronous Search
# This job runs on Linux. TODO Make it work for other OS distributions
# This job runs on Linux.
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
Expand Down Expand Up @@ -89,5 +89,33 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: asynchronous-search-plugin
name: asynchronous-search-plugin-ubuntu
path: asynchronous-search-artifacts
windows-build:
# Job name
name: Build Asynchronous Search
# This job runs on Windows.
runs-on: windows-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
# 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.bat build -D"opensearch.version=1.3.0-SNAPSHOT" -x integTest -x jacocoTestReport
env:
_JAVA_OPTIONS: -Xmx4096M
- name: Create Artifact Path
run: |
mkdir -p asynchronous-search-artifacts
cp ./build/distributions/*.zip asynchronous-search-artifacts
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: asynchronous-search-plugin-windows
path: asynchronous-search-artifacts

0 comments on commit 9aeca94

Please sign in to comment.