mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 05:19:10 +08:00 
			
		
		
		
	
							
								
								
									
										14
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								examples.md
									
									
									
									
									
								
							@@ -8,6 +8,7 @@
 | 
				
			|||||||
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
 | 
					- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
 | 
				
			||||||
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
 | 
					- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
 | 
				
			||||||
- [Ruby - Gem](#ruby---gem)
 | 
					- [Ruby - Gem](#ruby---gem)
 | 
				
			||||||
 | 
					- [Go - Modules](#go---modules)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Node - npm
 | 
					## Node - npm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -95,4 +96,15 @@ uses: actions/cache@preview
 | 
				
			|||||||
    key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
 | 
					    key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
 | 
				
			||||||
    restore-keys: |
 | 
					    restore-keys: |
 | 
				
			||||||
      ${{ runner.os }}-gem-
 | 
					      ${{ runner.os }}-gem-
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Go - Modules
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```yaml
 | 
				
			||||||
 | 
					- uses: actions/cache@preview
 | 
				
			||||||
 | 
					  with:
 | 
				
			||||||
 | 
					    path: ~/go/pkg/mod
 | 
				
			||||||
 | 
					    key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
 | 
				
			||||||
 | 
					    restore-keys: |
 | 
				
			||||||
 | 
					      ${{ runner.os }}-go-
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user