Skip to content

Commit

Permalink
Merge pull request #116 from mike-n-jordan/add_build_caching
Browse files Browse the repository at this point in the history
Add caching to gradle action builds.
  • Loading branch information
mike-n-jordan authored Oct 26, 2023
2 parents b7a8e64 + 52721e4 commit f83ec38
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
with:
distribution: 'zulu'
java-version: '17'
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
- name: Build
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/web_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
distribution: 'zulu'
java-version: '17'

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

Expand Down

0 comments on commit f83ec38

Please sign in to comment.