From 6878f56f4add30520448211352d0965744a96812 Mon Sep 17 00:00:00 2001 From: David Venable Date: Mon, 27 Nov 2023 13:21:51 -0800 Subject: [PATCH] Gradle parallel max (#3700) Set the maximum workers to 2 when running the GHA build and release tasks. Signed-off-by: David Venable --- .github/workflows/gradle.yml | 2 +- .github/workflows/release.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1f375461d9..cb4373ee24 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 --parallel build + run: ./gradlew --parallel --max-workers 2 build - name: Upload Unit Test Results if: always() uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfc3739ac4..dbbf86fbfc 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 --parallel build + run: ./gradlew --parallel --max-workers 2 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 --parallel :release:archives:buildArchives -Prelease + run: ./gradlew --parallel --max-workers 2 :release:archives:buildArchives -Prelease - name: Build Maven Artifacts run: ./gradlew publish