Skip to content

Commit

Permalink
Increase CI gradle memory, update actions and use no-daemon option
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Aug 24, 2023
1 parent a02e320 commit 0a1b973
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
all:
runs-on: ubuntu-latest
env:
GRADLE_OPTS: "-Xmx4g -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=2"
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=2"

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'

- name: Cache Gradle dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand All @@ -34,7 +34,7 @@ jobs:
${{ runner.os }}-gradle-
- name: Assemble
run: ./gradlew clean spotlessCheck build
run: ./gradlew --no-daemon clean spotlessCheck build

- name: Store distribution artifacts
uses: actions/upload-artifact@v2
Expand All @@ -56,7 +56,7 @@ jobs:
password: ${{ secrets.DOCKER_PAT_RW }}
- name: Publish Docker Image
run: |
./gradlew dockerUpload
./gradlew --no-daemon dockerUpload
- name: Publish Multi-arch Docker Image
run: |
Expand Down

0 comments on commit 0a1b973

Please sign in to comment.