You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ma...@apache.org on 2021/02/07 00:30:41 UTC

svn commit: r1886266 - /poi/trunk/.github/workflows/test-gradle.yml

Author: mariusvolkhart
Date: Sun Feb  7 00:30:41 2021
New Revision: 1886266

URL: http://svn.apache.org/viewvc?rev=1886266&view=rev
Log:
Cache Gradle wrapper & caches during GitHub Actions

Modified:
    poi/trunk/.github/workflows/test-gradle.yml

Modified: poi/trunk/.github/workflows/test-gradle.yml
URL: http://svn.apache.org/viewvc/poi/trunk/.github/workflows/test-gradle.yml?rev=1886266&r1=1886265&r2=1886266&view=diff
==============================================================================
--- poi/trunk/.github/workflows/test-gradle.yml (original)
+++ poi/trunk/.github/workflows/test-gradle.yml Sun Feb  7 00:30:41 2021
@@ -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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org