mirror of
				https://github.com/actions/cache.git
				synced 2025-11-01 02:44:18 +08:00 
			
		
		
		
	Update example formatting (#57)
* adjust formatting of Carthage example * enable syntax highlighting for Cargo example
This commit is contained in:
		
							parent
							
								
									d8c5e69fe2
								
							
						
					
					
						commit
						5d3ad75a2b
					
				
							
								
								
									
										15
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								examples.md
									
									
									
									
									
								
							| @ -36,6 +36,7 @@ | |||||||
| 
 | 
 | ||||||
| ## C# - Nuget | ## C# - Nuget | ||||||
| Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies): | Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies): | ||||||
|  | 
 | ||||||
| ```yaml | ```yaml | ||||||
| - uses: actions/cache@v1 | - uses: actions/cache@v1 | ||||||
|   with: |   with: | ||||||
| @ -70,12 +71,12 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa | |||||||
| ## Swift, Objective-C - Carthage | ## Swift, Objective-C - Carthage | ||||||
| 
 | 
 | ||||||
| ```yaml | ```yaml | ||||||
| uses: actions/cache@v1 | - uses: actions/cache@v1 | ||||||
|       with: |   with: | ||||||
|         path: Carthage |     path: Carthage | ||||||
|         key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} |     key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||||||
|         restore-keys: | |     restore-keys: | | ||||||
|           ${{ runner.os }}-carthage- |       ${{ runner.os }}-carthage- | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Swift, Objective-C - CocoaPods | ## Swift, Objective-C - CocoaPods | ||||||
| @ -123,7 +124,7 @@ uses: actions/cache@v1 | |||||||
| 
 | 
 | ||||||
| ## Rust - Cargo | ## Rust - Cargo | ||||||
| 
 | 
 | ||||||
| ``` | ```yaml | ||||||
| - name: Cache cargo registry | - name: Cache cargo registry | ||||||
|   uses: actions/cache@v1 |   uses: actions/cache@v1 | ||||||
|   with: |   with: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Koen Punt
						Koen Punt