From 7a744f02406dd8e41bcfde0c4157740e23d25932 Mon Sep 17 00:00:00 2001 From: Mital Awachat Date: Wed, 11 Aug 2021 12:48:44 +0530 Subject: [PATCH] Add .github/workflows/build.yml (#19) * Add .github/workflows/build.yml * Update build workflow order Signed-off-by: Mital Awachat --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..3b7adc47118d7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up JDK 14 + uses: actions/setup-java@v2 + with: + java-version: '14' + distribution: 'adopt' + - name: Checkout OpenSearch + uses: actions/checkout@v2 + with: + repository: 'opensearch-project/OpenSearch' + path: OpenSearch + ref: '1.0.0' + - name: Build OpenSearch + working-directory: ./OpenSearch + run: ./gradlew publishToMavenLocal + - name: Checkout Branch + uses: actions/checkout@v2 + - name: Build with Gradle + run: ./gradlew build