diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-22 22:21:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 22:21:01 +0900 |
commit | 04da3001161a1389b3878c60cc52e66042eec2fd (patch) | |
tree | 77d9b62647feb1ab50d36572735794d411b04ff6 /.github/workflows/build.yml | |
parent | ead404e7e2c54a36f0dddbf87ab26a5342851f0f (diff) | |
download | OneConfig-04da3001161a1389b3878c60cc52e66042eec2fd.tar.gz OneConfig-04da3001161a1389b3878c60cc52e66042eec2fd.tar.bz2 OneConfig-04da3001161a1389b3878c60cc52e66042eec2fd.zip |
new: various workflow optimizations (#62)
* new: cache gradle files in workflows
* fix: remove setup-java caching and cache prebundled-jars in release workflow
* use secret for easier updating later
Co-authored-by: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62816b1..e773d76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,17 @@ jobs: with: java-version: 17 distribution: temurin - cache: gradle + + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + **/loom-cache + **/prebundled-jars + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Chmod Gradle run: chmod +x ./gradlew |