Skip to content

Commit

Permalink
ci: Cache gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jan 6, 2024
1 parent a4603ca commit 4199bcf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
distribution: temurin
java-version: 17
- run: chmod +x ./gradlew
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 'gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build --stacktrace
- name: Archive build results
Expand All @@ -23,4 +29,4 @@ jobs:
name: build-artifacts
path: build.tar.zst
if-no-files-found: error
retention-days: 3
retention-days: 3

0 comments on commit 4199bcf

Please sign in to comment.