From 55749716f69ab54596595bf918ce80c9cc4178b2 Mon Sep 17 00:00:00 2001 From: Chakravarthy Racharla Date: Mon, 10 Mar 2025 15:48:36 +0530 Subject: [PATCH] load-cache expt --- .github/workflows/build-jars.yml | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/build-jars.yml diff --git a/.github/workflows/build-jars.yml b/.github/workflows/build-jars.yml new file mode 100644 index 0000000000000..edb161afaba24 --- /dev/null +++ b/.github/workflows/build-jars.yml @@ -0,0 +1,52 @@ +name: build jars +on: + push: + branches: + - load-cache-workflow + # master + paths-ignore: + - "docs/**" + - "**.md" + pull_request: + branches: + - "load-cache-workflow" + paths-ignore: + - "docs/**" + - "**.md" + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build-jars: + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - name: Check out the repo + uses: acryldata/sane-checkout-action@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: 17 + + - uses: gradle/actions/setup-gradle@v4 + with: + gradle-home-cache-key: build-jars-cache-key + cache-write-only: true + + - name: Build JARs + run: | + ./gradlew jar -x datahub-web-react:jar -x datahub-frontend:jar --parallel --info + + # - uses: actions/upload-artifact@v4 + # if: always() + # with: + # name: Build Artifacts + # path: | + # **/build/libs/*.jar + # !**/build/libs/*-sources.jar + # !**/build/libs/*-javadoc.jar \ No newline at end of file