File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 2828 with :
2929 java-version : ' 11'
3030 distribution : ' temurin'
31+ cache : gradle
32+ - name : Validate Gradle wrapper
33+ uses : gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6
3134 - name : Build with Gradle
3235 uses : gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
3336 with :
3437 arguments : build
38+ - name : Cleanup Gradle Cache
39+ # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
40+ # Restoring these files from a GitHub Actions cache might cause problems for future builds.
41+ run : |
42+ rm -f ~/.gradle/caches/modules-2/modules-2.lock
43+ rm -f ~/.gradle/caches/modules-2/gc.properties
44+ rm -fr ~/.gradle/caches/*/plugin-resolution/
45+ find ~/.gradle/caches/ -name "*.lock" -type f -delete
46+ - name : build artifact
47+ uses : actions/upload-artifact@v3
48+ with :
49+ name : build-artifacts
50+ path : build/libs
51+ retention-days : 1
You can’t perform that action at this time.
0 commit comments