Skip to content

Commit

Permalink
Added ci dependency cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
bladecoder committed Mar 11, 2021
1 parent 6ab8d2a commit 759a681
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/gradle-build-push.yml
Expand Up @@ -12,5 +12,20 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
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: Build with Gradle
run: ./gradlew build
run: ./gradlew build
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -14,7 +14,7 @@ repositories {
}

dependencies {
testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.13'
}

jar {
Expand Down

0 comments on commit 759a681

Please sign in to comment.