Skip to content

Commit

Permalink
chore(CI): enable Gradle cache cleanup in GitHub Actions workflow
Browse files Browse the repository at this point in the history
This commit enables the Gradle cache cleanup in the GitHub Actions workflow to ensure that the cache does not consume unnecessary disk space. This is done by adding the 'gradle-home-cache-cleanup: true' option in the 'Setup Gradle' step of the workflow.
  • Loading branch information
phodal committed Oct 2, 2024
1 parent c563390 commit cf93f29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ jobs:
needs: [ build ]
runs-on: ubuntu-latest
steps:

# Check out the current repository
- name: Fetch Sources
uses: actions/checkout@v4
Expand All @@ -120,6 +119,8 @@ jobs:
# Setup Gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true

# Run tests
- name: Run Tests
Expand All @@ -145,7 +146,6 @@ jobs:
needs: [ build ]
runs-on: ubuntu-latest
steps:

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
uses: jlumbroso/free-disk-space@main
Expand All @@ -167,6 +167,8 @@ jobs:
# Setup Gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true

# Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache
Expand Down

0 comments on commit cf93f29

Please sign in to comment.