Skip to content

Commit

Permalink
Run the Gradle builds in parallel to reduce the overall build time. (o…
Browse files Browse the repository at this point in the history
…pensearch-project#3324)

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored and asifsmohammed committed Sep 27, 2023
1 parent 9328d3e commit 863f896
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .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 build
run: ./gradlew --parallel build
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v3
Expand All @@ -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"
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 build
run: ./gradlew --parallel 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 :release:archives:buildArchives -Prelease
run: ./gradlew --parallel :release:archives:buildArchives -Prelease

- name: Build Maven Artifacts
run: ./gradlew publish
Expand Down

0 comments on commit 863f896

Please sign in to comment.