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