mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 11:48:38 +08:00 
			
		
		
		
	Add Ruby Gem example
This commit is contained in:
		
							parent
							
								
									b2cac08cff
								
							
						
					
					
						commit
						f50b981a32
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							|  | @ -100,6 +100,16 @@ jobs: | |||
|     key: ${{ runner.os }}-maven | ||||
| ``` | ||||
| 
 | ||||
| ### Ruby - Gem | ||||
| ```yaml | ||||
| - uses: actions/cache@preview | ||||
|   with: | ||||
|     path: vendor/bundle | ||||
|     key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-gem- | ||||
| ``` | ||||
| 
 | ||||
| ## Cache Limits | ||||
| 
 | ||||
| Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 koogawa
						koogawa