mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 03:38:36 +08:00 
			
		
		
		
	Add hash of Cargo.lock to keys of caches
This commit is contained in:
		
							parent
							
								
									9dd57f4d18
								
							
						
					
					
						commit
						d6264c17f8
					
				|  | @ -64,17 +64,17 @@ See [Examples](examples.md) | ||||||
|   uses: actions/cache@preview |   uses: actions/cache@preview | ||||||
|   with: |   with: | ||||||
|     path: ~/.cargo/registry |     path: ~/.cargo/registry | ||||||
|     key: ${{ runner.os }}-cargo-registry |     key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||||||
| - name: Cache cargo index | - name: Cache cargo index | ||||||
|   uses: actions/cache@preview |   uses: actions/cache@preview | ||||||
|   with: |   with: | ||||||
|     path: ~/.cargo/git |     path: ~/.cargo/git | ||||||
|     key: ${{ runner.os }}-cargo-index |     key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||||||
| - name: Cache cargo build | - name: Cache cargo build | ||||||
|   uses: actions/cache@preview |   uses: actions/cache@preview | ||||||
|   with: |   with: | ||||||
|     path: target |     path: target | ||||||
|     key: ${{ runner.os }}-cargo-build-target |     key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Cache Limits | ## Cache Limits | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 rhysd
						rhysd