mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 13:29:10 +08:00 
			
		
		
		
	Update Rust directories recommended for caching (#433)
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:
		@@ -476,9 +476,11 @@ whenever possible:
 | 
			
		||||
- uses: actions/cache@v2
 | 
			
		||||
  with:
 | 
			
		||||
    path: |
 | 
			
		||||
      ~/.cargo/registry
 | 
			
		||||
      ~/.cargo/git
 | 
			
		||||
      target
 | 
			
		||||
      ~/.cargo/bin/
 | 
			
		||||
      ~/.cargo/registry/index/
 | 
			
		||||
      ~/.cargo/registry/cache/
 | 
			
		||||
      ~/.cargo/git/db/
 | 
			
		||||
      target/
 | 
			
		||||
    key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user