mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	Merge bc94205084 into 26c48dce83
				
					
				
			This commit is contained in:
		
						commit
						e76afaae67
					
				| 
						 | 
				
			
			@ -134,12 +134,16 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
 | 
			
		|||
 | 
			
		||||
## Java - Gradle
 | 
			
		||||
 | 
			
		||||
Consider using [gradle-cache-action](https://github.com/burrunan/gradle-cache-action) as it provides fine-grained
 | 
			
		||||
[@actions/cache](https://github.com/actions/toolkit/tree/main/packages/cache)-based caching for Gradle builds.
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
- uses: actions/cache@v2
 | 
			
		||||
  with:
 | 
			
		||||
    path: |
 | 
			
		||||
      ~/.gradle/caches
 | 
			
		||||
      ~/.gradle/wrapper
 | 
			
		||||
      !~/.gradle/wrapper/dists/**/gradle*.zip
 | 
			
		||||
    key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
 | 
			
		||||
    restore-keys: |
 | 
			
		||||
      ${{ runner.os }}-gradle-
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user