diff options
author | Marius Volkhart <mariusvolkhart@apache.org> | 2021-02-07 00:30:41 +0000 |
---|---|---|
committer | Marius Volkhart <mariusvolkhart@apache.org> | 2021-02-07 00:30:41 +0000 |
commit | 7e32be689516b4129b731320e6450737fccd609e (patch) | |
tree | 6772e0ac4d1e1439c0c5ca8b02e89c9ae899edd0 /.github/workflows | |
parent | 0e6f8573f3e7a69c20b4d45133eaec5bd3119222 (diff) | |
download | poi-7e32be689516b4129b731320e6450737fccd609e.tar.gz poi-7e32be689516b4129b731320e6450737fccd609e.zip |
Cache Gradle wrapper & caches during GitHub Actions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886266 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/test-gradle.yml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/test-gradle.yml b/.github/workflows/test-gradle.yml index 7594f29159..ee1522472e 100644 --- a/.github/workflows/test-gradle.yml +++ b/.github/workflows/test-gradle.yml @@ -22,13 +22,15 @@ jobs: with: java-version: 1.8 - - name: Cache + - name: Cache Gradle wrapper and dependencies uses: actions/cache@v2.1.3 with: - # A list of files, directories, and wildcard patterns to cache and restore - path: lib - # An explicit key for restoring and saving the cache - key: poi-third-party-libs + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Grant execute permission for gradlew run: chmod +x gradlew |