From 863f8961652c84147c5df0e27bc2edb59cae86cc Mon Sep 17 00:00:00 2001 From: David Venable Date: Thu, 14 Sep 2023 06:55:07 -0700 Subject: [PATCH] Run the Gradle builds in parallel to reduce the overall build time. (#3324) Signed-off-by: David Venable --- .github/workflows/gradle.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index df3d8c1a4c..a083132203 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -25,7 +25,7 @@ jobs: - name: Checkout Data Prepper uses: actions/checkout@v2 - name: Build with Gradle - run: ./gradlew build + run: ./gradlew --parallel build - name: Upload Unit Test Results if: always() uses: actions/upload-artifact@v3 @@ -35,7 +35,7 @@ jobs: - name: Upload Coverage Report uses: codecov/codecov-action@v1 - name: Generate Javadocs - run: ./gradlew javadoc + run: ./gradlew --parallel javadoc publish-test-results: name: "Publish Unit Tests Results" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e663de4e1d..dfc3739ac4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: - name: Get Version run: grep '^version=' gradle.properties >> $GITHUB_ENV - name: Build Jar Files - run: ./gradlew build + run: ./gradlew --parallel build - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 @@ -42,7 +42,7 @@ jobs: aws-region: us-east-1 - name: Build Archives - run: ./gradlew :release:archives:buildArchives -Prelease + run: ./gradlew --parallel :release:archives:buildArchives -Prelease - name: Build Maven Artifacts run: ./gradlew publish