chore: github actions cache

This commit is contained in:
lisonge
2023-09-05 20:04:08 +08:00
parent 16092e5ed0
commit e1b8e1bb2a
2 changed files with 22 additions and 0 deletions

View File

@@ -13,6 +13,17 @@ jobs:
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: chmod 777 ./gradlew
- run: ./gradlew build

View File

@@ -15,6 +15,17 @@ jobs:
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: chmod 777 ./gradlew
- run: ./gradlew build