Skip to content

Commit

Permalink
Gradle parallel max (opensearch-project#3700)
Browse files Browse the repository at this point in the history
Set the maximum workers to 2 when running the GHA build and release tasks.

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Nov 27, 2023
1 parent 727758d commit 6878f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6878f56

Please sign in to comment.