mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 03:04:01 +00:00 
			
		
		
		
	Update Rust directories recommended for caching
This commit applies the suggestion from The Cargo Book: https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
This commit is contained in:
		
							parent
							
								
									d1255ad936
								
							
						
					
					
						commit
						6bba3db48b
					
				@ -453,9 +453,11 @@ When dependencies are installed later in the workflow, we must specify the same
 | 
				
			|||||||
- uses: actions/cache@v2
 | 
					- uses: actions/cache@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    path: |
 | 
					    path: |
 | 
				
			||||||
      ~/.cargo/registry
 | 
					      ~/.cargo/bin/
 | 
				
			||||||
      ~/.cargo/git
 | 
					      ~/.cargo/registry/index/
 | 
				
			||||||
      target
 | 
					      ~/.cargo/registry/cache/
 | 
				
			||||||
 | 
					      ~/.cargo/git/db/
 | 
				
			||||||
 | 
					      target/
 | 
				
			||||||
    key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
 | 
					    key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user